Attached is my script essentially what I need to do is this. When a record is inserted into the database it will generate an id on the auto_incerment column. I need to insert this record immediately retrieve this id number. Then i need to place the id number into 2 other tables. I need to be able to execute 3 sql statements if somone creates a new entry. For some reason it does not seem to work. I will pay escrow will not be released until I see a working script.