Re: create tables in mysql with php??
| From: | CC Zona | Date: | Sun, 12 Aug 2001 01:55:14 +0000 |
| Subject: | Re: create tables in mysql with php?? | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-11256@lists.php.net to get a copy of this message | ||
In article <001901c122d1$6f5c1720$0200a8c0@joncheng>,
joncheng2000@yahoo.com (Jon Cheng) wrote:
> hello all, is there ANYWAY to create a new table in mysql with php?
Sure. It's a query, you submit it just like any other. If you're getting
errors:
(A) be sure the username in your mysql_connect() call has sufficient
privileges to create the table,
(B) check with the MySQL manual to confirm that your "create" statement is
syntactically correct, and /or
(C) call mysql_error() to find out what MySQL is choking on.
--
CC