Hi I have an update page with a form which contains 7 drop down menus and 2 text fields, all being populated by a select command on a mysql database, the whole page works fine with data coming and going back into the database. However, I can not work out the following. This is the code for one of the drop down menus, I might be better in the php forum but thought I would start here.
How to stop all the drop down fields being populated?
I have a couple of solutions
1. To carry out a function in php to omit the fields which contain my default of 0 which will mean they have not been updated.
2. To insert an html "selected" command into the php echos,
The problem is that I am not experienced enough to program either, if someone is able to help it would be very much appreciated.
<?php echo $typedescrip ['type_description']; ?>
$type_set = findtype();
$typelist = mysql_fetch_assoc ($type_set);
?> <option value="<?php echo $typelist ['type_id']; ?>" ><?php echo $typelist ['type_description'], $typelist ['type_id']; ?></option>
} while ($typelist = mysql_fetch_assoc ($type_set));