Re: Checking whether a MySQL table exists

From: Date: Tue, 09 Jan 2001 21:37:26 +0000
Subject: Re: Checking whether a MySQL table exists
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-33551@lists.php.net to get a copy of this message
> Is there a command to check for the existence of a MySQL table? > $res=mysql_query("show tables"); you have to search for the name manually! for example: while ($row=mysql_fetch_array($res)){ foreach ($row as $key => $value){ echo "$key -&gt; $value<br>"; } } witty -- Sent through GMX FreeMail - http://www.gmx.net

« previous php.general (#33551) next »