I need to isert into MySQL SQL like this:
$sql = "insert into AAA (AAA_ID,AAA) values ('1','qweqwe'); insert into BBB (BBB_ID,BB😎 values ('2','rtyrty');";
mysql_query($sql);
But it does not work. I need to make several insert queries at ones (inserting one query works but when they are more it does not works). I know that I can split them by ");" and loop with FOR, but there must be any way to make it only with php functions.
Please advise