Depending on what exactly you are doing you should probably use
http://www.php.net/manual/en/function.mysql-list-fields.php
or
http://www.php.net/manual/en/function.mysql-fetch-field.php

Sheridan Saint-Michel
Website Administrator
FoxJet, an ITW Company
www.foxjet.com


----- Original Message ----- 
From: "Alex Shi" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 25, 2001 2:03 PM
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