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:[EMAIL PROTECTED]] 
Sent: marted́ 25 settembre 2001 21.03
To: [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED] To
contact the list administrators, e-mail: [EMAIL PROTECTED]



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to