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 Link to comment https://forums.phpfreaks.com/topic/19562-keeping-track-of-data/ 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(); Link to comment https://forums.phpfreaks.com/topic/19562-keeping-track-of-data/#findComment-85092 Share on other sites More sharing options...
oldschool Posted September 3, 2006 Author Share Posted September 3, 2006 Thank you Barand! :) Link to comment https://forums.phpfreaks.com/topic/19562-keeping-track-of-data/#findComment-85099 Share on other sites More sharing options...
Barand Posted September 3, 2006 Share Posted September 3, 2006 Are you OK with session handling bit? Link to comment https://forums.phpfreaks.com/topic/19562-keeping-track-of-data/#findComment-85100 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.