To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: [PHP] PHP function for listing number of columns in
table
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
]
Subject: RE: [PHP] PHP function for listing number of columns
in
table
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
Holmes [EMAIL PROTECTED]
Sent: Monday, June 10, 2002 1:18 AM
Subject: RE: [PHP] PHP function for listing number of columns in table
yes, I think getting the result set for 'describe $table' or 'show
fields from $table' and then doing mysql_num_rows() on that is best
because it will return right
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
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
try
mysql_num_fields()
Hugh
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, June 08, 2002 9:54 PM
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
6 matches
Mail list logo