You have a while loop that pulls values out of the MySQL table row by row,
and for each row, you output an option in the select box.
Something like:
{$color}";
}
?>
Season to taste :)
Justin French
on 14/08/02 2:30 PM, Brian & Shannon Windsor ([EMAIL PROTECTED])
wrote:
> Hi,
>
> I
Something like this should work:
after mysql_connect() and mysql_select_db() ...
$sql = "SELECT color_id,color FROM mytable";
$result = mysql_query($sql);
echo '';
echo '';
while ($row = mysql_fetch_array($result)){
printf("",$row["color_id"]);
printf("%s",$row["color"]);
2 matches
Mail list logo