note 15621 added to function.mysql-field-name

From: Date: Sun, 23 Sep 2001 22:09:57 +0000
Subject: note 15621 added to function.mysql-field-name
Groups: php.notes 
Request: Send a blank email to php-notes+get-18222@lists.php.net to get a copy of this message
here's one way to print out a row of <th> tags from a table NOTE: i didn't test this $result = mysql_query("select * from table"); for ($i = 0; $i < mysql_num_fields($result); $i++) { print "<th>".mysql_field_name($result, $i)."</th>\n"; } post a comment if there's an error -- http://www.php.net/manual/en/function.mysql-field-name.php http://master.php.net/manage/user-notes.php?action=edit+15621 http://master.php.net/manage/user-notes.php?action=delete+15621 http://master.php.net/manage/user-notes.php?action=reject+15621

« previous php.notes (#18222) next »