Re: create if table not exists
| From: | John Taylor-Johnston | Date: | Mon, 17 May 2004 06:32:34 +0000 |
| Subject: | Re: create if table not exists | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-186386@lists.php.net to get a copy of this message | ||
>But wouldn't it be easier to create the tables in the first place?
Travis,
It surely would. But for one situation, I don't/can't have access to phpMyAdmin to install
it.
At the same time, I wanted to learn how to do it.
--
John
I'm still learning. But isn't this much more fun than Perl!
> To paraphrase, just use mysql_list_tables() to get a table list in a result
> set, then go through the result set to see if the named table exists.
>
> But wouldn't it be easier to create the tables in the first place?