On 17-May-2004 John Taylor-Johnston wrote: > How can I check if a table exists in a mysql db.
function tableexists($tbl) { $res = @mysql_query("SELECT COUNT(*) FROM $tbl"); return ($res ? true : false); } Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's the time to do it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php