  | 
              
	              
	                
  
    
	 
        ช่วยตรวจสอบcodeให้หน่อยครับตอนบันทึกข้อมูลแล้วเหมือนบันทึกซ้ำ 2 ครั้ง codeผิดตรงไหนครับ     | 
   
  
    |   | 
   
 
 
 
              
  
          
		
     
		
	  
        
             | 
            | 
            | 
             | 
         
        
             | 
                       | 
          
            
               
                 formsave 
 
Code (PHP) 
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>บันทึกข้อมูล</title>
<style type="text/css">
<!--
.style6 {font-family: "MS Serif"; font-size: x-large; color: #FF0000; }
body {
	background-image: url();
	background-color: #FFFFF2;
}
-->
</style>
</head>
<body>
<div align="center"></div>
<div align="center">
  <p> </p>
  <p> </p>
  <p><img src="pic/06096102.png" width="400" height="364"></p>
  <table width="490" height="61" border="1" bgcolor="#FFFFCC">
    <tr>
      <td width="183"><div align="center"><span class="style6">
<?php
$objConnect = mysql_connect("xxxx","xxxx","xxxx") or die("Error Connect to Database");
$objDB = mysql_select_db("culturedb");
mysql_query("SET NAMES UTF8");
$strSQL = "INSERT INTO professional ";
$strSQL.="(academic_name,prefix_name,pro_name,pro_surname,pro_project,pro_money,capital_name,company_name,year_name,exper_name,pro_details)";
$strSQL .="VALUES";
$strSQL .="('".$_POST["txtacademic_name"]."',
            '".$_POST["txtprefix_name"]."',
            '".$_POST["txtpro_name"]."',
            '".$_POST["txtpro_surname"]."',
            '".$_POST["txtpro_project"]."',
            '".$_POST["txtpro_money"]."',
		    '".$_POST["txtcapital_name"]."',
            '".$_POST["txtcompany_name"]."',
            '".$_POST["txtyear_name"]."',
            '".$_POST["txtexper_name"]."',
            '".$_POST["txtpro_details"]."')";
$objQuery = mysql_query($strSQL);
if($objQuery)
{
	echo "ยินดีด้วยบันทึกสำเร็จ";
}
else
{
	echo "Error Save [".$strSQL."]";
}
mysql_close($objConnect);
?>
      </span></div></td>
      <td width="291"><div align="center" class="style6"><a href="formadd.php">กลับไปบันทึกต่อ </a></div>    <div align="center" class="style6"></div></td>
    </tr>
  </table>
</div>
</body>
</html
                        
               
               | 
             
            
              
			                              
                              
              
                
                     | 
                     | 
                     | 
                 
                
                     | 
                  
                      
                        | Date :
                            2018-09-18 10:29:18 | 
                        By :
                            pichets | 
                         
                    | 
                     | 
                 
                
                     | 
                     | 
                     | 
                 
                | 
             
           
			         | 
             | 
         
        
             | 
            | 
             | 
             | 
         
          
	    
     
               
		
     
		
	  
        
             | 
            | 
            | 
             | 
         
        
             | 
                       | 
          
            
               
                   
ขึ้นแบบนี้ครับ                        
               
               | 
             
            
              
			                              
                              
              
                
                     | 
                     | 
                     | 
                 
                
                     | 
                  
                      
                        | Date :
                            2018-09-18 10:34:11 | 
                        By :
                            pichets | 
                         
                    | 
                     | 
                 
                
                     | 
                     | 
                     | 
                 
                | 
             
           
			         | 
             | 
         
        
             | 
            | 
             | 
             | 
         
          
	    
     
               
		
     
		
	  
        
             | 
            | 
            | 
             | 
         
        
             | 
                       | 
          
            
               
                 จะบันทึกซ้ำแต่อีก ฟิวส์ ไม่มีข้อมูลขึ้นครับ รบกวนช่วยดูให้หน่อยครับ                        
               
               | 
             
            
              
			                              
                              
              
                
                     | 
                     | 
                     | 
                 
                
                     | 
                  
                      
                        | Date :
                            2018-09-18 10:45:09 | 
                        By :
                            pichets | 
                         
                    | 
                     | 
                 
                
                     | 
                     | 
                     | 
                 
                | 
             
           
			         | 
             | 
         
        
             | 
            | 
             | 
             | 
         
          
	    
     
      		  
	
     | 
   
 
                 |