Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

create a edit link from a dynamic table data to the correct record

Engaged ,
Oct 22, 2011 Oct 22, 2011

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

TOPICS
Server side applications

Views

462
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 23, 2011 Oct 23, 2011

Copy link to clipboard

Copied

LATEST

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.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines