db sql issue from var
| From: | Dave Carrera | Date: | Thu, 01 Jan 1970 00:00:00 +0000 |
| Subject: | db sql issue from var | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-19435@lists.php.net to get a copy of this message | ||
Hi All
I have found the problem from my last post and need to know how to solve it.
Example sql var:
$sql = "DROP TABLE IF EXISTS test; CREATE TABLE test .......";
When i run the script i get
Mysql error near ';' create table......
So how do i run this command from my script to include the ; as part of the
sql.
phpmyadmin copes with this ok so it must be able to be done.
Thanks for any help in advance
Dave C