RE: [PHP] PHP function for listing number of columns in table

From: Date: Sun, 09 Jun 2002 17:29:27 +0000
Subject: RE: [PHP] PHP function for listing number of columns in table
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-101337@lists.php.net to get a copy of this message
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: webmaster@tececo.com [mailto:webmaster@tececo.com] > Sent: Sunday, June 09, 2002 12:54 AM > To: php-general@lists.php.net > 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 > webmaster@tececo.com > www.tececo.com

« previous php.general (#101337) next »