header('content-Type: text/html; charset=utf-8'); if($_GET['deltymat'] !="" ) { include ('connect_db.php'); $sqldelpre="delete from tb_typemat where Typemat_id=".$_GET['deltymat']; //echo $sqlintpre; //die(); $excsqldel=mysql_query($sqldelpre) or die(mysql_error()); if($excsqldel){ echo "<script> alert('??????????????????????????? !');window.location='frm_shtypemat.php';</script>"; } }
$sqldelpre="delete from tb_typemat where Typemat_id='".$_GET['deltymat']."' ";
header('content-Type: text/html; charset=utf8'); if($_POST['id_tymat'] !=" " ) { include('connect_db.php'); $sqluptypemat="update tb_typemat set Typemat_id='".$_POST['id_tymat']."',Typemat_name='".$_POST['ty_namemat']."' where Typemat_id=".$_POST['id_tymat']; //echo $sqluptypemat ; //die(); $excsqlup=mysql_query($sqluptypemat); if($excsqlup) { echo "<script> alert('คุณได้ทำการแก้ไขข้อมูลเรียบร้อยแล้ว');window.location='frm_shtypemat.php'</script>"; } }
Quote:Typemat_id=".$_POST['id_tymat'];
<? if($_POST['id_tymat'] !=" " ) { include('connect_db.php'); $sqluptypemat="update tb_typemat set Typemat_id='".$_POST['id_tymat']."',Typemat_name='".$_POST['ty_namemat']."' where Typemat_id='".$_POST['id_tymat']."'"; //echo $sqluptypemat ; //die(); $excsqlup=mysql_query($sqluptypemat); if($excsqlup) { echo "<script> alert('คุณได้ทำการแก้ไขข้อมูลเรียบร้อยแล้ว');window.location='frm_shtypemat.php'</script>"; } }
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง