I have a simple form running that I am succesfully using UPDATE to update the info in the database, but in my form (on my web page) I would like to see what is currently there before I edit or update that info. I tried this...
<?
$db = mysql_connect("localhost", "", "");
mysql_select_db("top_ten",$db);
$sql = "SELECT * FROM rick";
$result = mysql_query($sql);
$myrow = mysql_fetch_array($result);
$one = $myrow["one"];
?>
and then in my form, I just tried to assign the value of the input field using the info I just retrieved from the db...
<input type=text name=one maxlength=50 size=50 value="<? $one ?>" >
Unfortunatelly, this did not work. Also I should point out that my form action is another php file that handles the UPDATE. And like I said, the UPDATE works great, I'd just like to be able to see what's in there before I edit or update it.
Thanks for looking,
Rick