Quick question. So what I need to do is to populate my html droplist with rows from my table. I am able to do this for one html droplist down but the moment I do this with another html droplist, it becomes a problem. you cant use mysql_fetch_array twice. any suggestions?
Below is the sample code which I referenced to do this.
query = mysql_query("YOUR QUERY HERE"); // Run your query
echo '<select name="DROP DOWN NAME">'; // Open your drop down box
// Loop through the query results, outputing the options one by one
while ($row = mysql_fetch_array($query)) {
echo '<option value="'.$row['something'].'">'.$row['something'].'</option>';
}
echo '</select>';// Close your drop down box