$sql="SELECT y_thai FROM year
where y_thai between $yearnow_new01 and $yearnow_new02";
$dbquery=mysql_db_query($dbname, $sql)or die ("ส่งคิวรีไม่ได้"); ?>
<select name="InYear"size="1"style="font-family: MS Sans Serif; " >
<? echo "<option value=>กรุณาเลือกปี</option> " ; // เมนูลำดับแรก
while($row = mysql_fetch_array($dbquery)) {?>
<option value="<?=$row['y_thai'];?>"><?=$row['y_thai'];?></option>
<? } ?>
<select>