This didn't seem to work. I'm starting to wondering if my select statement needs to be tweaked. The table I'm trying to get data from is part of a relational database. The status table is part of the dropbox. Here are is my code from the dynamic drop down menu and the table structure:
echo '<br /><br />';
echo '<select name="status">'."\n";
echo '<option value="none">Select unit status </option>'."\n";
$status_name = mysql_query('SELECT * FROM status ORDER BY id');while ($status = mysql_fetch_array($status_name, MYSQL_ASSOC)){
echo '<option value="'.$status['id'].'"';
if($record_data['ref_status_id']==$status['id']) print " selected=\"selected\" ";
echo '>'.$status['status_name']."</option>\n";
}
echo '</select>'."<br />\n";
main table name: dropbox
columns: id, filename, mimetype, date, filedata, ref_status_id, ref_rma_id, ref_categories_id
table name: status
columns: id, status_name
table name: categories
columns: id, category
table name: rma
columns: id, rma_number