note 50132 added to function.mysql-list-fields
| From: | nestt at osu1 dot php dot net | Date: | Sat, 19 Feb 2005 00:20:32 +0000 |
| Subject: | note 50132 added to function.mysql-list-fields | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-85229@lists.php.net to get a copy of this message | ||
Correctly :
<?php
function mysql_list_fields_good($db, $table) {
mysql_select_db($db);
return mysql_fetch_row(mysql_query("SHOW COLUMNS FROM '$table'"));
}
?>
a one )
:P
----
Manual Page -- http://www.php.net/manual/en/function.mysql-list-fields.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+50132
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+50132&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+50132&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+50132&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+50132&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+50132&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+50132&report=yes
Search -- http://master.php.net/manage/user-notes.php