Hi,

          Use this:
$query="describe TableName";
$result=mysql_query($query) or die (mysql_error());

This is one good way to prevent update or delete or mass up the table
without known.

Kelvin.


""~BD~"" <[EMAIL PROTECTED]> wrote in message
02a601c0ced3$34cdd5a0$22041dd8@winbox">news:02a601c0ced3$34cdd5a0$22041dd8@winbox...
> Sorry to do this to ya...
> I"ve been involved with PHP for a total of two days now, and I'm kinda
> stumped. I've been looking in docs for about 4 hours now for this, and I'm
> sure I'm slipping right by the obvious answer somewhere, but....
>
> What's the best (recommended) way to determine if a table exists in a
> database? Is it to try a query on it, and check the returned error? that's
> the way I'm set up now, but I can't help but think there's got to be a
> better way...
>
> TIA,
> ~BD~
>
>
>
> http://www.bustdustr.net
> Home of Radio Free Bd
>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to