oldschool Posted September 3, 2006 Share Posted September 3, 2006 Howdy!I'm trying to find out what the most sensible way is of keeping track of something I've just entered into a database is. For example...Page 1 - Enter details, hit submit. Data entered in to the database.Page 2 - Requires some of the data I've just entered to be displayed. I would prefer it if I could grab the record number that has just been created by the database, not the data that has been posted.Any pointers would be gratefully received. I'm thinking that I need to use a session, but just need some help to get out of the starting block.thanksDan Quote Link to comment Share on other sites More sharing options...
Barand Posted September 3, 2006 Share Posted September 3, 2006 After inserting the new record, call$newid = mysql_insert_id(); Quote Link to comment Share on other sites More sharing options...
oldschool Posted September 3, 2006 Author Share Posted September 3, 2006 Thank you Barand! :) Quote Link to comment Share on other sites More sharing options...
Barand Posted September 3, 2006 Share Posted September 3, 2006 Are you OK with session handling bit? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.