Jump to content

josephbupe

Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by josephbupe

  1. 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();
×
×
  • Create New...