TommyG Posted May 4, 2004 Share Posted May 4, 2004 Hello there... I'm having trouble with a record update form. I have a repeating table that lists all records in my database and have an arrow image that points to page.php?<?php echo $row_Recordset1['Tag_Number']; ?> However when clicking on this link, The page that displays is the last record entered... not the one with the corresponding Tag_Number I was searching for. I created a record update form called page.php. By opening the page with the ? and the variable shouldn't it open the corresponding page? Any help would be great. Quote Link to comment https://forums.phpfreaks.com/topic/1829-passing-a-variable-to-the-browser-to-view-a-record/ Share on other sites More sharing options...
Milshak Posted May 20, 2004 Share Posted May 20, 2004 Try to send the the record id which should be part of the databse as an autoincrement colum like this page.php?id=$id Then use this id to modify your query with; select * from tablename where id=$id. Quote Link to comment https://forums.phpfreaks.com/topic/1829-passing-a-variable-to-the-browser-to-view-a-record/#findComment-6038 Share on other sites More sharing options...
youngbuc Posted July 7, 2004 Share Posted July 7, 2004 to make this work: Try to send the the record id which should be part of the databse as an autoincrement colum like this page.php?id=$id i believe that you can use a url variable when you are creating your recordset. then you get the ? after the .php hope this helps Quote Link to comment https://forums.phpfreaks.com/topic/1829-passing-a-variable-to-the-browser-to-view-a-record/#findComment-6158 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.