note 38476 deleted from function.mysql-list-fields by tularis
| From: | tularis@php.net | Date: | Sat, 19 Feb 2005 18:08:32 +0000 |
| Subject: | note 38476 deleted from function.mysql-list-fields by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-85253@lists.php.net to get a copy of this message | ||
Note Submitter: anonymous at person dot com
----
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!