note 57299 added to function.mysql-field-name

From: Date: Thu, 29 Sep 2005 21:23:05 +0000
Subject: note 57299 added to function.mysql-field-name
Groups: php.notes 
Request: Send a blank email to php-notes+get-96016@lists.php.net to get a copy of this message
this also works to list the headers as column names: while ($get_info = mysql_fetch_field($result,$i)) { echo "<th>\n"; echo "$get_info->name"; echo "</th>\n"; $i++; } I know it is not using the fucntion mentioned above, but it accomplishes the same thing and you can grab other information from the column if you change the return value. $result is the mysql_query.. ---- Manual Page -- http://www.php.net/manual/en/function.mysql-field-name.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+57299 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+57299&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+57299&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+57299&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+57299&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+57299&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+57299&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+57299&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+57299&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#96016) next »