Jump to content

[SOLVED] get the newest id from a mysql table??


acidglitter

Recommended Posts

There was this really simple code and I can't remember what it was and I can't find it.. But right after you inserted something into a table you would do something like

 

mysql_newest_id()

 

and it would get the id of the row just barely entered without having to start a new query and fetch it.. Does anyone know what that code is?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.