I was wondering if there was a way to make a select box with multiple options based on one row from my MySQL table.
For instance,
<?php
if(!empty($row['size']))
{ ?>
<label>Size</label>
<select name="size">
<option value=""><?php echo $row['size'];?></option>
</select>
<?php
}
?>
in my database I have one row labeled "size". In that row, I have multiple sizes separated by a coma. Is it possible to break those comas into separate options once I retrieve the data from my table? Or will I have to make multiple rows in my DB labeled "size_1, size_2".... and so on.