how can i insert in 3 different tables through one mysql query that is i want to write one mysql query that will insert in 3 different tables.i have basically html form in which there are different tables involved so i will insert data collected from a form into 3 different tables. is it possible if so how ?? if not why ??
for one table
$var1_table1 = $_POST['table1_column1'];
$var2_table1 = $_POST['table1_column2'];
$var3_table1 = $_POST['table1_column3'];
for second table
$var1_table2 = $_POST['table2_column1'];
$var2_table2 = $_POST['table2_column2'];
$var3_table2 = $_POST['table2_column3'];
for third table
$var1_table3 = $_POST['table3_column1'];
$var2_table3 = $POST['table3_column2'];
$var3_table3 = $_POST['table3_column3'];
this is the formate of my variable