-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* and then CC Zona declared
> 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
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
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* and then Martin C. Petersen declared
> Do a select on the table - if the query returns true the table exists
> otherwise the test is inconclusive..
Yep, that'l do it. cheers.
- --
Nick Wilson
Tel:+45 3325 0688
Fax:+45 3325 0677
We
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?
Do a select on the table - if the query returns true the table exists
otherwise the test is in
4 matches
Mail list logo