if ($_POST[action] == 'save' && $_POST[action] == 'save'){ $yearsel = $_POST[txtownerid]; $reg_idcompa = $_POST[txtcompaid]; $reg_namecompa = addslashes($_POST[txtcompa]); $reg_typecompa = $_POST[dll_typecom]; $reg_leader = addslashes($_POST[txtleader]); $reg_amphoe = $_POST[dll_amphoe]; $reg_tambon = $_POST[dll_tambon]; $reg_address = addslashes($_POST[txtaddress]); $reg_tel = $_POST[txttel]; $reg_fax = $_POST[txtfax]; $reg_email = addslashes($_POST[txtemail]); if ($reg_fax == ''){$reg_fax='NULL';}else{$reg_fax = '"'.$reg_fax.'"';} if ($reg_email == ''){$reg_email='NULL';}else{$reg_email = '"'.$reg_email.'"';} $sql = "UPDATE `owner_$yearsel` SET `name_owner` = '$reg_namecompa', `typeowner` = '$reg_typecompa', `leader` = '$reg_leader', `amphoe` = '$reg_amphoe', `tambon` = '$reg_tambon', `address` = '$reg_address', `telephone` = '$reg_tel', `fax` = $reg_fax, `email` = $reg_email WHERE `owner_id` = '$reg_idcompa'"; if (!mysql_query($sql,$Connect)) { echo "<script>alert('ไม่บันทึกได้');window.close();</script>";exit(); } echo "<script>alert('คุณได้ทำการแก้ไขมูลเรียบร้อยแล้ว'); window.parent.reload(); window.close();</script>";exit(); }
echo "<script>alert('คุณได้ทำการแก้ไขมูลเรียบร้อยแล้ว'); window.parent.reload(); window.close();</script>";exit();
echo"<script type=\"text/javascript\"> alert('คุณได้บันทึกข้อมูลเรียบร้อยแล้ว'); window.opener.location.reload(); window.close();</script>";exit();
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง