Copy link to clipboard
Copied
ok i have made a dynamic table with the correct information from the MySql database to populate it but i want to add an edit button to take me to the correct information i want to edit / delete. what is happening is no matter what record i want to edit it just takes me to the first record in the database?
the link i am using is detail.php?userid=<?php echo $row_Recordset1['userid']; ?>
where the detail.php is where the data can be edited
thanks in advance for any help
Jon
Copy link to clipboard
Copied
There are 2 things you need to troubleshoot.
First is the page where you have this link. In the browser are you being taken to the right page? Does the address bar show the proper id? If so, then the problem most likely does not exist on that page. Then if that is the case how are you pulling the data on the next page to get the right record? Can you show us the query being used? It is very hard to troubleshoot without seeing any code.