I have my hidden id
<input type="hidden" name="id" value="<?php echo "$id" ?>" />
in my form
I have my
$id = $_REQUEST['id'];
to get the id from the url
And on the update script i have
$navtype = $_GET['nav'];
And i have
WHERE id=$id
, but it keep updating just one record over and over,no matter which record i select.
When i make the hidden text, i see the right id
<input type="text" name="id" value="<?php echo "$id" ?>" />
.
I echo
"$sql";
, and the value is always one
UPDATE persoz SET lname='Daniel',fname='Ekow Gilbert Jr.',p_no='012012',todate='2011-01-01', WHERE id=1