In my project i wanna use the last_insert_id() to be stored in a session variable and after that i wanna use that session variable i.e., the value of last_insert_id() in another page. How can i carry the last_insert_id() to some other page using session or storing it in a session variable ? Urgent pls... :) Thanks
ronaldpaul
0
Newbie Poster
Recommended Answers
Jump to Postsession_start(); // INSERT query here $_SESSION['last_insert'] = mysql_insert_id($link);
That should give you the gist of it.
All 3 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.