Possible Duplicate:
Getting specific table row based on id mysql DB
I have a database that is displayed but I want to have the table “id” become a link to edit that table row. So if I display 10 rows of data the last column will be the row’s id’s and clicking the id is a link to an edit form for that particular row.
What is the easiest way to do this?
without knowing in what context you have this requriment..
on the page that lists your records, chuck them in an HTML table
for the collumn that holds the ID, render that out as
then in your edit page (edit.php)
use the id passed in via the URL e.g $_GET[‘id’]..to list a form that will allow you to edit that record
your SQL will use the WHERE clase to filter to the recod that was selected