Reading column labels (or not) in PHP
Posted: Wed Nov 10, 2004 9:17 am
Hi
I have a table that I have created from a table stored in an ASCII file. The columns have random labels (they could be anything), and so when I use
I am not sure what to put in the quotes of $row['???'] in order to read the first, second, third column etc.
Finally, is there any way of determining a column's label given a column number?
Many thanks
Mark
I have a table that I have created from a table stored in an ASCII file. The columns have random labels (they could be anything), and so when I use
Code: Select all
$row = mysql_fetch_array($result);Finally, is there any way of determining a column's label given a column number?
Many thanks
Mark