Re: RE: [PHP] If Column Exists

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/


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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux