I'm trying to put multiple records in my database using php and mysql. I'm able to do the first INSERT if I don't try also doing the second one. Once I add the second insert, no record is written at all. I'm think that it is a syntax error but I tried very clear examples from http://www.w3schools.com/php/php_mysql_insert_multiple.asp and insert multiple rows via a php array into mysql but still not working. The only difference is the concatination and the semi-colins at the end of the statement.
Any ideas what I may be doing wrong?
 $query="INSERT INTO  myTable (
 `user1` ,
 `user2` ,
 `user3` 
 )
 VALUES ('data1', 'data2' , 'data3');";
   $query .="INSERT INTO  myTable (
 `user1` ,
 `user2` ,
 `user3` 
 )
 VALUES ('data4', 'data5' , 'data6')";
 
     
    