how to retrieve the last stored record information from a database table
Hi all,
I have a slight problem with retrieval of records.
Currently, I have a form with reservation number (an auto incremental primary key of my table), ISBN (a primary key from my books table), Email (a primary key from my users table), number of orders, and collection date.
My reservation number and collection date are hidden textfields while ISBN and email are read only textfield. So when users key in number of orders, it will insert a record into my reservation table in my database and i will be redirected to reservation confirmation page.
How do i show the reservation number immediately on my reservation confirmation page?
Is it to use mysql_insert_id() ?
If I am supposed to use it, how should i place it?
Please elaborate more as I am quite new to php. Thanks!
