Need to pull id of last entry made

wxdqz

New Member
I have seen somewhere along the line, that there is a php or mysql function that will allow me to pull up the last entry that was made to the database.

I have a form that the user submits their info to and then in the same piece of code there is an output page. In the database, there is an auto incrementing field called "id".

What I want to happen is that when a user submits their information, the database creates a new record and therefore a new id. I want the page that shows up after submitting to display that id.

I remember reading somewhere that this was possible and very easy.

Any ideas?
 
Back
Top