MySQLi version of a Dynamic Dropdown on an UPDATE form?
So when I try to select "Dynamic" for my dropdown menu, in my update form, the MySQLi recordset doesn't show as available. So, I created 2 recordsets - one MySQL, one MySQLi - and I the non-MySQLi recordset is available which, for my select field, gives me this:
<select class="form-control" id="BWnewsbutton" name="BWnewsbutton" tabindex="6">
<option value="1" <?php if (!(strcmp(1, $row_rsEDITNEWSalt['BWnewsbutton']))) {echo "selected=\"selected\"";} ?>>Contact Page</option>
<option value="2" <?php if (!(strcmp(2, $row_rsEDITNEWSalt['BWnewsbutton']))) {echo "selected=\"selected\"";} ?>>Windows Page</option>
<option value="3" <?php if (!(strcmp(3, $row_rsEDITNEWSalt['BWnewsbutton']))) {echo "selected=\"selected\"";} ?>>Doors Page</option>
<option value="4" <?php if (!(strcmp(4, $row_rsEDITNEWSalt['BWnewsbutton']))) {echo "selected=\"selected\"";} ?>>Conservatories Page</option>
<option value="5" <?php if (!(strcmp(5, $row_rsEDITNEWSalt['BWnewsbutton']))) {echo "selected=\"selected\"";} ?>>Get a Quote - Windows</option>
<option value="6" <?php if (!(strcmp(6, $row_rsEDITNEWSalt['BWnewsbutton']))) {echo "selected=\"selected\"";} ?>>Get a Quote - Doors</option>
<option value="7" <?php if (!(strcmp(7, $row_rsEDITNEWSalt['BWnewsbutton']))) {echo "selected=\"selected\"";} ?>>Get a Quote - Conservatories</option>
<option value="8" <?php if (!(strcmp(8, $row_rsEDITNEWSalt['BWnewsbutton']))) {echo "selected=\"selected\"";} ?>>Home Page</option>
</select>
Rather than have two recordsets on the page, where only one is required, what is the MySQLi version of the above?
Thank you.
NJ