  | 
            | 
            | 
             | 
         
        
             | 
                       | 
          
            
               
                 มันก็บอกตรงตัวแล้วนี่ครับ Syntax Error พูดตรงๆก็คือ คุณเขียน Code ไม่ถูกครับ 
  
ถ้าจะถามต่อ เอาโค้ดมาด้วยน่ะครับ จะได้ช่วยดู                        
               
               | 
             
            
              
			                
  ประวัติการแก้ไข 2011-08-15 15:30:06              
                              
              
                
                     | 
                     | 
                     | 
                 
                
                     | 
                  
                      
                        | Date :
                            2011-08-15 15:29:32 | 
                        By :
                            mangkunzo | 
                         
                    | 
                     | 
                 
                
                     | 
                     | 
                     | 
                 
                | 
             
           
			         | 
             | 
         
        
             | 
            | 
             | 
             | 
         
          
	    
     
               
		
     
		
	  
        
             | 
            | 
            | 
             | 
         
        
             | 
                       | 
          
            
               
                 เอาคำสั่งมาดูครับ                        
               
               | 
             
            
              
			                              
                              
              
                
                     | 
                     | 
                     | 
                 
                
                     | 
                  
                      
                        | Date :
                            2011-08-15 15:30:38 | 
                        By :
                            Dragons_first | 
                         
                    | 
                     | 
                 
                
                     | 
                     | 
                     | 
                 
                | 
             
           
			         | 
             | 
         
        
             | 
            | 
             | 
             | 
         
          
	    
     
               
		
     
		
	  
        
             | 
            | 
            | 
             | 
         
        
             | 
                       | 
          
            
               
                 Code (PHP) 
<?php
$con = mysql_connect("localhost","root","");
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }
mysql_select_db("ebandit", $con);
$sql="INSERT INTO user (user_id, user_name, add, email, tell)
VALUES
('$_POST[user_id]','$_POST[user_name]','$_POST[add]','$_POST[email]','$_POST[tell]')";
if (!mysql_query($sql,$con))
  {
  die('Error: ' . mysql_error());
  }
echo "1 record added";
mysql_close($con)
?>
                        
               
               | 
             
            
              
			                              
                              
              
                
                     | 
                     | 
                     | 
                 
                
                     | 
                  
                      
                        | Date :
                            2011-08-15 16:06:40 | 
                        By :
                            sunnyonto | 
                         
                    | 
                     | 
                 
                
                     | 
                     | 
                     | 
                 
                | 
             
           
			         | 
             | 
         
        
             | 
            | 
             | 
             | 
         
          
	    
     
               
		
     
		
	  
        
             | 
            | 
            | 
             | 
         
        
             | 
                       | 
          
            
               
                 Code (PHP) 
<?php
$con = mysql_connect("localhost","root","");
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }
mysql_select_db("ebandit", $con);
$user_id = $_POST['user_id'];
$user_name = $_POST['user_name'];
$add = $_POST['add'];
$email = $_POST['email'];
$tell = $_POST['tell'];
$sql="INSERT INTO user (user_id, user_name, add, email, tell)
VALUES
('$user_id','$user_name','$add','$email','$tell')";
if (!mysql_query($sql,$con))
  {
  die('Error: ' . mysql_error());
  }
echo "1 record added";
mysql_close($con)
?>
                        
               
               | 
             
            
              
			                
  ประวัติการแก้ไข 2011-08-15 18:01:38 2011-08-15 18:02:12              
                              
              
                
                     | 
                     | 
                     | 
                 
                
                     | 
                  
                      
                        | Date :
                            2011-08-15 18:01:09 | 
                        By :
                            mangkunzo | 
                         
                    | 
                     | 
                 
                
                     | 
                     | 
                     | 
                 
                | 
             
           
			         | 
             | 
         
        
             | 
            | 
             | 
             | 
         
          
	    
     
               
		
     
		
	  
        
             | 
            | 
            | 
             | 
         
        
             | 
                       | 
          
            
               
                 ขอบคุณคราบ                        
               
               | 
             
            
              
			                              
                              
              
                
                     | 
                     | 
                     | 
                 
                
                     | 
                  
                      
                        | Date :
                            2011-08-16 01:10:36 | 
                        By :
                            sunnyonto | 
                         
                    | 
                     | 
                 
                
                     | 
                     | 
                     | 
                 
                | 
             
           
			         | 
             | 
         
        
             | 
            | 
             | 
             | 
         
          
	    
     
      		  
	
     |