hello all.
I am wondering is there any good way to update multiple tables which all dependent on each other. For example here is my database structure
Table 1: pid, first_name, mi, last_name
Table 2: phoneid, pid, phone number // phone number table
Table 3: hid, address // home address table
Table 4: hid, pid // joiner table between person and home address
If there is a form from which I take all the input what's the best way to store all this information in php and then update in appropriate table. I checked some othe forum topics and found out that associative array can help in optimizing the code. I am not sure how it can be employed.
Further once i recieve data how should I write an optimize php code that can take all the data and upload it in mysql data
Looking for quick replies
Thank you