
How do you select the id row number when in a loop like in the code below?:
Quote:
|
quote:echo "<SELECT NAME=\"f_prod_id\">";
|
Quote:
while ($row=mysql_fetch_array($mysql_result))
{
$manufacturers_id=$row["manufacturers_id"];
$manufacturers_name=$row["manufacturers_name"];
echo "<OPTION>$manufacturers_name</OPTION>";
}
echo "</SELECT><br>";
|
This code above places the text value of $manufacturers_name into f_prod_id. What i would like it to do it actually place the manufacturers_id into f_prod_id so i can back reference it when i come to extract this data from another table.
Any ideas?
Michael.