How to determine next record ID.

admin

Administrator
Staff member
I am writing a php script that maintains a table in a database. The index to the table is an id field that I have defined as auto-increment. I need to be able to determine what id will be assigned prior to the record being added or be able to quickly determine the id that was added so that I can use it can be used in the calculations that immediately follow the add. Any ideas?
Thanks for your help.
 
Back
Top