|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-05-14 22:42 UTC] norny at geocities dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 10:00:01 2025 UTC |
I can't get mysql_field_name() to return the field name of position 0 in the mysql result from my query. All subsiquent field names appear, just not the first one. I even tried just forcing a 0 in the position instead of the incremented variable: $result = mysql_query ( $sql ); while($db_content = mysql_fetch_row($result)) { for($i=0; $i < sizeof($db_content); $i++) { echo mysql_field_name($result, 0); } } That code doesn't output anything whereas if I replace the 0 in mysql_field_name() with $i, it prints the field names of all but my first column.