A
Anonymous
Guest
Guys, Its me again, I know How to have a list or menu, with option values from a table.
<select name="contact" id="select3">
<option></option>
<?php
$query = "SELECT * FROM contact";
$result = @mysql_query ($query);
while ($row = mysql_fetch_array ($result, MYSQL_ASSOC))
{
echo "<option value=\"{$row1['name']}\"> {$row1['name']} </option>\n";
}
?>
</select>
I am making an update record form, how can i display the option values with a specific value selected?
For example.
Subject: Math
Teacher: Ms. Smith
I want to edit the teacher and replace it with another person.
How can I display the record in a form using a list or menu dropdown
that has Ms. Smith as the default selected value?
Sorry if i cant explain it clearly.
Thanks.
<select name="contact" id="select3">
<option></option>
<?php
$query = "SELECT * FROM contact";
$result = @mysql_query ($query);
while ($row = mysql_fetch_array ($result, MYSQL_ASSOC))
{
echo "<option value=\"{$row1['name']}\"> {$row1['name']} </option>\n";
}
?>
</select>
I am making an update record form, how can i display the option values with a specific value selected?
For example.
Subject: Math
Teacher: Ms. Smith
I want to edit the teacher and replace it with another person.
How can I display the record in a form using a list or menu dropdown
that has Ms. Smith as the default selected value?
Sorry if i cant explain it clearly.
Thanks.