note 10924 deleted from function.mysql-field-name by didou
| From: | didou@php.net | Date: | Sat, 17 May 2003 20:54:37 +0000 |
| Subject: | note 10924 deleted from function.mysql-field-name by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-48244@lists.php.net to get a copy of this message | ||
Note Submitter: grissly@gmx.at
There are 2 errors in the example of tiltol@caramail.com.
The correct example is:
<?php
echo "<h3>Felder der Tabelle $table: </h3><p>";
$result = mysql_list_fields("myDB", $table);
$Nr = mysql_num_fields($result);
for ($count = 0; $count < $Nr; $count++) {
echo mysql_field_name($result, $count) . "( Nr $count )<br>";
}
?>