Hello,
I am trying to make a PHP/HTML update script for MySQL.
I prompt the user to enter the ID# of the record they wish to update into a form which then uses the passed ID# to select the associated record from the database:
How do I output the data from the query into the form so the user simply alters the field that needs to be updated? I've tried variations of this:
but atm I get a blank form and when I try to input any data the residentid = 0 not the passed variable
-- thanks for any help --
I am trying to make a PHP/HTML update script for MySQL.
I prompt the user to enter the ID# of the record they wish to update into a form which then uses the passed ID# to select the associated record from the database:
Code:
$id = @$_GET['q'] ;
Code:
$query = "SELECT FROM Hcffres WHERE residentid = $id"; mysql_query($query);
Code:
Last Name: </font></td><td><input type="text" name="lastname" value="<?php echo $lastname; ?>" size="40"</td></tr>
-- thanks for any help --
Comment