I am using mysql_fetch_array().
I do not understand why it is not pulling those values from the database and putting them into editing text fields...
In the past, I've used this script in a way that I passed a name from a form, searched for the record in the database, and all fields were populated with the correct record data in a snap.
This concept is similar in a way that I am looking for a match in the database where 'choice', which holds a numeric 'id' value, matches the 1 particular record in which the administrator has selected from the drop-down menu.
Since fetch_array puts items into an array automatically, there is no need to 'force' anything else into an array, as I previously did...
My current code is short and sweet:
$db1=mysql_connect("localhost","michael","xcrunner");
mysql_select_db("COUNTY_DIRECTORY");
$result= mysql_query("SELECT * FROM EMPLOYEE_INFO WHERE id = '" . $_POST['choice'] . "' ");
$row=mysql_fetch_array($result);
and I want to echo the results of each element of that array in an editable field...
<b>First Name:</b></font>
<input type="text" name="f_name"
value="<? echo $row["f_name"]; ?>" size='50'>
I'm sorry this is so repetitive, but if it were possible, I'd take a Craftsman and drill the concept into my head...
Thanks so much LorkShryku