Actually the mysql_query() seems to accept only one statement at a time.

Any work around so i can do query suchs:

mysql_query("
SELECT 1+1;
SHOW DATABASES;
USE database1;
SELECT * FROM table1;
");

Just multiple commands seperated with ';' ? (as if using the Mysql command
prompt)



-- 
PHP General 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