|
 |
|
ขอคำแนะนำ เรื่อง loop หน่อยสิครับ ท่าน เจ้าข้าเอ๊ย ... |
|
 |
|
|
 |
 |
|
$months = array("มกราคม", "กุมภาพันธ์", "มีนาคม", "เมษายน", "พฤษภาคม", "มิถุนายน", "กรกฏาคม", "สิงหาคม", "กันยายน", "ตุลาคม", "พฤศจิกายน", "ธันวาคม");
<select name="showmonth" >
<?php
for ($no_month=1; $no_month<= count($months); $no_month++) { ?>
<option value="<?=$no_month?>" <? if($no_month==$smonth) echo ' selected';?>><? echo $months[$no_month-1];?>
</option>
<?
}
?>
</select>
deawx
[email protected]
|
 |
 |
 |
 |
Date :
2009-04-23 06:36:31 |
By :
deawx |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ต้องขอบคุณ เจ้ามาก ที่มีเมด ตา กับ ข้า ในครานี้
ขุนวัง
เมือง วิเศษชัยชาญ
|
 |
 |
 |
 |
Date :
2009-04-23 10:10:19 |
By :
ขุนวัง |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 05
|