rnb_cassanova Posted January 28, 2008 Share Posted January 28, 2008 Hi Guys, I need to display the result of a new record being added into a mysql db, but more importantly a line which will display specifically the ID of the record that has been entered. code I currently Have - <p align="center">Dear <input name="Name" type="image" value="<?php echo $_SESSION['Name']?>"/> </p> <p align="center">_Thank You very Much For Your Custom</p> <p align="center">&_</p> <p align="center">Submitting Your Proposal_</p> <p align="center">_Your Reference Number Is - <?php echo $row['Employee']?> </p> <p align="center">Please Click Here To Return_ </p> <p align="center">Once Again; Thank You From DV8_ </p> <p align="center"> </p> <p align="center">If You Are Uploading Artwork Please Click Browse and Locate The File_</p> <p align="center"><input name="Name" type="file" /> </p> </body> </html> cheers Lads Quote Link to comment https://forums.phpfreaks.com/topic/88231-can-anyone-help/ Share on other sites More sharing options...
hitman6003 Posted January 28, 2008 Share Posted January 28, 2008 use mysql_insert_id to get the id of the row that was inserted. http://www.php.net/mysql_insert_id Quote Link to comment https://forums.phpfreaks.com/topic/88231-can-anyone-help/#findComment-451437 Share on other sites More sharing options...
tapos Posted January 28, 2008 Share Posted January 28, 2008 u can use mysql_insert_id(). Quote Link to comment https://forums.phpfreaks.com/topic/88231-can-anyone-help/#findComment-451445 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.