Jump to content

Drop list menu error


josephbupe

Recommended Posts

My select option drop down lists items (country names) outside the control.

 

Not sure where I am going wrong.

 

Here is the code:

$result = $mysqli->query("SELECT CountryID,Country FROM t_countries ORDER BY Country");echo "<select name=CountryID>";echo "<option size =30 >----</option>";while($row = $result->fetch_assoc()) {echo "<option value='{$row['CountryID']}'>{$row['Country']}</option>";}echo "</select>";$result->close();
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...