I would like make INSERT INTO to two different MySQL tables. For example,
- insert customer details in tblcustomer
- insert customer address in tbladdress
Can I make it in
$result = mysql_query( "INSERT INTO tblcustomer( txtaccount_name,txtfirst_name,txtlast_name,txtemail ,intoffice_no,intfax,intmobile,intother_no,dtebirth_date) VALUES('$acc_name','$fname','$lname','$email', '$office','$fax_no','$mobile_no','$others_no','$date')"); $result1 = mysql_query( "INSERT INTO tbladdress( txtmailing_add,txtothers_add,txtmailing_street,txtothers_street, txtmailing_city,txtothers_city,txtmailing_state,txtothers_state, txtmailing_postcode,txtothers_postcode,txtmailing_country, txtothers_country) VALUES('$m_add','$o_add','$m_street','$o_street', '$m_city','$o_city','$m_state','$o_state', '$m_postcode','$o_postcode','$m_country', '$o_country')");