nnichols wrote:After your insert statements you can use mysql_insert_id() to return the id of the last auto incremented insert.
Is it the last auto incremented or is it the auto incremented that is related to the code you did put in? I mean, if two persons are inserting things at the same time, will you get the right id then? Like this:
[b]Timeline Person 1 Person 2[/b]
1 Insert into test...
2 Insert into test...
3 $id1 = mysql_insert_id()
4 $id2 = mysql_insert_id()
Let's say that the first person 1 is inserting post number 100, then $id1 should be 100. But before person 1 gets the id person 2 inserts something, and the last id is now 101. What will the value of $id1 be, will it be 100 or 101?