I have a database called class_database. I have connection to my database through my php file. I believe my query is correct, however it will not populate into html dropdown menu. Listed below are the two sections of php I have written with the html dropdown menu included.
<?php
$mysqli= NEW MySQLi ('localhost' , 'root' , '' , 'class_database');
$resultSet = $mysqli->query( "SELECT * FROM 'class_list' ORDER BY 'ClassNumber' DESC ");
?>
<select name="class_list">
<?php
while($rows = $resultSet->fetch_assoc())
{
$classnumbers = $rows['classnumbers'];
echo "<option value='classnumbers'>$classnumbers</option>";
}
?>
</select>
The above code results in a blank dropdown menu. How do I properly populate the dropdown menu?