I'm having a problem with the <option> and <select>...I go to the table to fetch the data but I can't seem to put it on the "combobox", combobox comes empty!
Any idea what it might be?
here is the code I'm using:
echo "<select>";
echo "<option"; if($row['emplacement'] == 1) echo "value ='1'>place 1</option>";
echo "<option"; if($row['emplacement'] == 2) echo "value ='2'>place 2</option>";
echo "<option"; if($row['emplacement'] == 3) echo "value ='3'>place 3</option>";
echo "<option"; if($row['emplacement'] == 4) echo "value ='4'>place 4</option>";
echo "<option"; if($row['emplacement'] == 5) echo "value ='5'>place 5</option>";
echo "<option"; if($row['emplacement'] == 6) echo "value ='6'>place 6</option>";
echo "</selected>";

New Topic/Question
Reply



MultiQuote







|