No. There is, however, a function that'll tell you how many columns are
in a result set. So, if you select all columns, then you can use that
function to find out how many columns are in the table.

www.php.net/mysql_num_fields

---John Holmes...

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, June 09, 2002 12:54 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] PHP function for listing number of columns in table
> 
> Pardon the probably stupid question but,
> 
> Is there a PHP function for listing number of columns in a mySQL
table?
> 
> Thanks in advance
> 
> JJ Harrison
> [EMAIL PROTECTED]
> www.tececo.com



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to