View Single Post
  #1 (permalink)  
Old 2008-03-20, 02:14 PM
cancer10 cancer10 is offline
Junior Member
 
Join Date: Dec 2007
Posts: 10
cancer10 is on a distinguished road
Question PHP/MySql - Inserting Multiple Records

I want to insert records into multiple tables at one go, I am doing this in the following way, is this the correct way of doing? If not, what is the better way?



Code:
mysql_query("insert into table1 values('abc')");
mysql_query("insert into table2 values('ttt')");
mysql_query("insert into table3 values('5t6')");
mysql_query("insert into table4 values('ghy')");
mysql_query("insert into table5 values('gfd')");


Please help


Thanx
Reply With Quote
Sponsored Links