I'm having two MySQL Tables Customer and Address. I'm having data of a Complete Customer (i.e., Personal Info with Address)
Table Structures
Customer
CustId FullName Gender AddressId
__________________________________________
Address
AddressId Street City State
_____________________________________
I'm inserting the table values in PHP platform, how could I relate the AddressId and Insert all the data in a Single shot. I can't trust the Last Inserted Id, because its a Web we can't assure the last inserted AddressId is belongs the respective record (Cloud data - Online Insertion)