note 38476 added to function.mysql-list-fields
| From: | anonymous at person dot com | Date: | Tue, 23 Dec 2003 14:00:43 +0000 |
| Subject: | note 38476 added to function.mysql-list-fields | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-62376@lists.php.net to get a copy of this message | ||
Here is the function rewritten, but with no resource identifier which would be trivial to add:
<?php
function mysql_list_fields_good($db, $table) {
mysql_select_db($db);
return mysql_fetch_row(mysql_query("SHOW COLUMNS FROM '$table'");
}
?>
Simple as that!
----
Manual Page -- http://www.php.net/manual/en/function.mysql-list-fields.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+38476
Delete -- http://master.php.net/manage/user-notes.php?action=delete+38476&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+38476&report=yes
Search -- http://master.php.net/manage/user-notes.php