Re: RE: [PHP] If Column Exists

From: Date: Wed, 13 Aug 2008 22:35:28 +0000
Subject: Re: RE: [PHP] If Column Exists
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-45216@lists.php.net to get a copy of this message
Simcha wrote:
You can try 'select testcol from table' and then check if you got a mysql_error().
If you do that, and the column exists, and there are 100,000 rows in there - you just selected 100,000 rows. Add a limit 1 to the end to only get one row. -- Postgresql & php tutorials http://www.designmagick.com/

« previous php.db (#45216) next »