Code :
<!DOCTYPE html>
<html>
<head>
<title> Belajar membuat DropDown List </title><?phpmysql_connect("localhost","root","");mysql_select_db("negara");?>
</head><body>
<h2>Dropdown List </h2><form method="POST"><select name="negara" id="negara">
<option disabled selected> Country </option><?php$sql=mysql_query("Select * From Negara");while ($data=mysql_fetch_array($sql)) {?><option value="<?=$data['negara']?>"><?=$data['negara']?></option><?php}?>
</select>
</body>
</html>