RE: [PHP] How to obtain all the fields' names of a MySQL table?
| From: | Maxim Maletsky \(PHPBeginner.com\) | Date: | Tue, 25 Sep 2001 19:12:38 +0000 |
| Subject: | RE: [PHP] How to obtain all the fields' names of a MySQL table? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-68761@lists.php.net to get a copy of this message | ||
Why not to look into source code of PHPLIB? The class db_mysql has a
function called metadata (I think) - it does exactly that and much more.
You can copy the function only or use the class for all your db
manipulations if you wish.
Maxim Maletsky
PHPBeginner.com
-----Original Message-----
From: Alex Shi [mailto:chpshi@netvigator.ca]
Sent: martedì 25 settembre 2001 21.03
To: php-general@lists.php.net
Subject: [PHP] How to obtain all the fields' names of a MySQL table?
Hi,
I wanto know how can obtain all of the fields' names of a
MySQL table in a php script. Anyone have an idea about
this please help. Thanks!
Alex
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net To
contact the list administrators, e-mail: php-list-admin@lists.php.net