Posted on 2010-01-10
I have an ajax function that relays some information to a php script. The php script store the information in a database, and the response text containts the mysql_insert_id() so that we can know the record we are working with.
I have one function that saves the information via ajax. Then, the user (at a later time, say... 5 minutes later), completes the action, and clicks the update button.
How do I save the mysql_insert_id that was reported by the first ajax function so that I can update that record with ajax a second time?