<select name="zone" id="zone" style="width:100px; height:22px; float:left; margin:0px 0px 0px 0px;">
<?php
$sql33="select * from tb_zone where nation='Domestic'";
$query33=mysql_query($sql33);
while($row33=mysql_fetch_array($query33)) {
?>
<option value="<?php echo $row33['zone_id']; ?>"><?php echo $row33["zone_name"]; ?></option>
<?php } ?>
</select>
Hello as above there is a simple script in PHP that is fetching values from database and displaying it. My question is can we do the same task in JavaScript. Means can we fetch values from database and display them in <select>
in JavaScript?