MySQL / PHP dating site
MySQL / PHP dating site
Out of context: Reply #8
- Started
- Last post
- 40 Responses
- mikotondria30
Do the insert query for the user data, then make the very next thing you do getting the last_insert_id for that record, then just INSERT INTO the other table, SET client_id = the last_insert_id you just got.
Last_insert_id (http://php.net/manual/en/functi... gets the most recently generated index where you used auto_increment...
Lots of googled stuff on it... best of luck