note 57299 deleted from function.mysql-field-name by mazzanet

From: Date: Thu, 29 Sep 2005 21:30:36 +0000
Subject: note 57299 deleted from function.mysql-field-name by mazzanet
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-96017@lists.php.net to get a copy of this message
Note Submitter: ---- 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..

« previous php.notes (#96017) next »