Sunday, 25 August 2013

column names along their headings php mysql

column names along their headings php mysql

Helo, I want to print and retrieve column names along their headings or
their catagories title .. I'm using the following code to print the column
names:
<?php
$arrlength=count($sort); for($x=0;$x<$arrlength;$x++) {
echo " <TD class=\"tr1 td26\"><P class=\"p12
ft4\">".$sort[$x]."</P></TD>";
}
?>
I want to print the column names along their column headings, how can i
retrieve them if i have the following table schema: **col heading 1 - col1
col heading 1 - col2
col heading 2 - col1
col heading 2 - col2
col heading 3 - col1
col heading 3 - col2
col heading 3 - col3
col heading 3 - col4
col heading 1 col heading 2 col heading 3
------------- ------------- -------------------------
col1 col2 col1 col2 col1 col2 col3 col4
I can store column headings in other table so that It can be replaced or
printed in their particular place ..
Thankx in anticipation .. ;)

No comments:

Post a Comment