"Aggro" <spammerdream@yahoo.com> wrote in message
news:fTGxd.365$9e2.36@read3.inet.fi...[color=blue]
> jim wrote:
>[color=green]
> > However, it doesn't seem to need a table name for that. What if exactly[/color][/color]
at[color=blue][color=green]
> > the same time another users enters something into my guestbook. That[/color][/color]
will[color=blue][color=green]
> > submit data to the same MySQL db, so won't the 'SELECT LAST_INSERT_ID'[/color][/color]
give[color=blue][color=green]
> > me that ID, and not the ID from the card submission?
> >
> > Am I missing something very obvious here? I checked the MySQL docs but[/color][/color]
can't[color=blue][color=green]
> > see anything obvious.[/color]
>
> "The value of mysql_insert_id() is affected only by statements issued
> within the current client connection. It is not affected by statements
> issued by other clients."
>
>
http://dev.mysql.com/doc/mysql/en/mysql_insert_id.html[/color]
This is why you might want to SELECT max(ID) FROM table to get the lastest
one.
Rich