In article <[EMAIL PROTECTED]>,
 [EMAIL PROTECTED] (Nick Wilson) wrote:

> What would be the easiest way to see if a MySQL table exists with PHP?
> I can do it by checking against mysql_list_tables() but that seems a
> little clumsy. Is there a better way?

See MySQL's documentation of the "CREATE TABLE" and "DROP TABLE" syntax: 
both support table existance checks.

create table if not exists mytablename...
drop table if exists mytablename...


PHP General Mailing List (
To unsubscribe, visit:

Reply via email to