Hello ppl,
How can I send 2 query's in one mysql_query($sql)?
I thought I could use ';' to separate the query's, but I can not do it! 🙁
For example:
$sql="INSERT INTO table1 (name) VALUES ('john'); INSERT INTO table2 (name) VALUES ('john')";
mysql_query($sql);
It gives me an error of syntax 🙁
How can I send 2 query's in one statement?
Thanks in advance