i use the following code to create a drop down menu with the default value set as 0
[code]<?
$mysqli = new mysqli('localhost','root','******');
$mysqli->select_db('orders');
$result = $mysqli->query("SELECT * FROM quotes");
echo "<SELECT name='quoteid'>n";
echo "<option value=''>0</option>n";
while($row = $result->fetch_assoc()) {
echo "<option value='{$row['quoteid']}'>{$row['quoteid']}</option>n";
}
echo "</select>n";
$result->close();
?>[/code]
My problem now is that when i submit this data if i leave that dropdown as the default (0) the first time it submitted a 3, the second time a 2 and now it just submits 1.
This is very confusing as i cannot see where it is getting this data from.
Thanks,
Mike
MOD EDIT: Removed password