Hi,
I'm trying to create a database that stores shoes. Each shoe must have more than one size so I have created a table "mens_boot_test" with a field "size". In the size field I have an integer which holds the delimited values 1,2,3,4,5,6,7,8,9. I'm then trying to retrieve these values in a drop down box but they are all coming up as one option instead of nine.
Can someone please tell me what I am doing wrong?
$query = "SELECT * FROM boot_mens_test where id = 7";
$result = mysql_query($query);
echo "<form name='sizetest'><select name='Sizes'>";
while($row = mysql_fetch_array($result))
{
echo "<option value='{$row['size']}'>{$row['size']}</option>";
}
echo "</form>";