On Fri, 17 Oct 2003 01:02:57 +0200, "sam" <rbaba99@carama il.com> wrote:
[color=blue]
>Is there a simple way to test if a mysql table exists?
>JUST One line ![/color]
Depends how many commands you put on one line.
$res = mysql_query("sh ow table status like '$tablename'")
or die(mysql_error ());
$table_exists = mysql_num_rows( $res) == 1;
Comment