  | 
            | 
            | 
             | 
         
        
             | 
                       | 
          
            
               
                <?php 
$thaimonthFull=array("มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม", "พฤศจิกายน","ธันวาคม"); 
 
echo "<select name='mm' size='1'>"; 
for($i=0;$i<count($thaimonthFull),$i++){ 
echo "<option value='".($i+1)."' "; 
if(date("m")==$i+1){ 
echo " selected"; 
} 
echo ">".$thaimonthFull[$i]."</option>"; 
} 
echo "</select>"; 
 
?> 
                              
               
               | 
             
            
              
			                                
              
                
                     | 
                     | 
                     | 
                 
                
                     | 
                  
                      
                        | Date :
                            9 ส.ค. 2548  12:11:59 | 
                        By :
                            noom_programmer | 
                         
                    | 
                     | 
                 
                
                     | 
                     | 
                     | 
                 
                | 
             
           
			         | 
             | 
         
        
             | 
            | 
             | 
             | 
         
          
	    
     
               
		
     
		
	  
        
             | 
            | 
            | 
             | 
         
        
             | 
                       | 
          
            
               
                ของผมจะคล้ายกะข้างบน แต่ Array Index 0 ของผมจะเปงค่าว่างไปจะได้ไม่มีปัญหาเรื่องการวนลูป แต่ผมคิดว่าของคุณ noom_programmer น่าจะมีบักอยู่นะครับ เพราะว่า date("m") มันจะมี 0 นำหน้าด้วยนะครับเอามาเปรียบเทียบกันมัน็ไม่เท่ากัน เช่น 01,03 ควรจะใช้ date("n") มากกว่านะครับ หรือว่าจะแก้โดยใช้ intval ก็ได้ เช่น intval(date("m")) 
=================================================================================== 
<? 
$thaimonth=array("","มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม", "พฤศจิกายน","ธันวาคม"); 
 
echo "<select name='mm'>"; 
for($i=1;$i<=count($thaimonth),$i++){ 
  if (date("n")==$i) 
    echo  "<option value='".($i+1)."' selected>".$thiamonth[$i]."</option>"; 
  else 
    echo  "<option value='".($i+1)."' >".$thiamonth[$i]."</option>"; 
} 
echo "</select>"; 
?> 
                        
               
               | 
             
            
              
			                                
              
                
                     | 
                     | 
                     | 
                 
                
                     | 
                  
                      
                        | Date :
                            9 ส.ค. 2548  13:12:28 | 
                        By :
                            jezusmitsui | 
                         
                    | 
                     | 
                 
                
                     | 
                     | 
                     | 
                 
                | 
             
           
			         | 
             | 
         
        
             | 
            | 
             | 
             | 
         
          
	    
     
               
		
     
		
	  
        
             | 
            | 
            | 
             | 
         
        
             | 
                       | 
          
            
               
                ขอบคุณนะคะ จะลองทำดู                           
               
               | 
             
            
              
			                                
              
                
                     | 
                     | 
                     | 
                 
                
                     | 
                  
                      
                        | Date :
                            9 ส.ค. 2548  16:16:33 | 
                        By :
                            sweet | 
                         
                    | 
                     | 
                 
                
                     | 
                     | 
                     | 
                 
                | 
             
           
			         | 
             | 
         
        
             | 
            | 
             | 
             | 
         
          
	    
     
               
		
     
		
	  
        
             | 
            | 
            | 
             | 
         
        
             | 
                       | 
          
            
               
                ไม่ผิดหรอก จะใช้ date() ตัวไหนก็ได้ 
 
<?php 
$thaimonthFull=array("มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม", "พฤศจิกายน","ธันวาคม"); 
 
echo "<select name='mm' size='1'>"; 
for($i=0;$i<count($thaimonthFull);$i++){ 
echo "<option value='".($i+1)."' "; 
if(date("m")==$i+1){// ใช้ date("n") ก็ได้ 
echo " selected"; 
} 
echo ">".$thaimonthFull[$i]."</option>"; 
} 
echo "</select>"; 
 
?> 
 
                        
               
               | 
             
            
              
			                                
              
                
                     | 
                     | 
                     | 
                 
                
                     | 
                  
                      
                        | Date :
                            10 ส.ค. 2548  08:50:57 | 
                        By :
                            noom_programmer | 
                         
                    | 
                     | 
                 
                
                     | 
                     | 
                     | 
                 
                | 
             
           
			         | 
             | 
         
        
             | 
            | 
             | 
             | 
         
          
	    
     
               
		
     
		
	  
        
             | 
            | 
            | 
             | 
         
        
             | 
                       | 
          
            
               
                หรอ.......ออ.....ก้อดีนี่............                        
               
               | 
             
            
              
			                                
              
                
                     | 
                     | 
                     | 
                 
                
                     | 
                  
                      
                        | Date :
                            24 พ.ย. 2551  11:19:04 | 
                        By :
                            คนน่าราก | 
                         
                    | 
                     | 
                 
                
                     | 
                     | 
                     | 
                 
                | 
             
           
			         | 
             | 
         
        
             | 
            | 
             | 
             | 
         
          
	    
     
      		  
	
     |