if($str = "INSERT INTO mg_table (Mg) VALUES ('".$_POST["txt_mg"]."')"){ echo "มีการอัพเดท"; }
//เพิ่มข้อมูล โดยรับค่าหน้าเดียวโดยใช้คำสั่ง switch mysql_connect ("localhost","root","5555"); mysql_select_db ("test"); $msg= $_GET['msg']; switch ($msg){ case 'add': $test= $_POST['test']; $sqladd = mysql_query ("insert into test (test) values ('$test')") or die (mysql_error()); echo "<script language=\"javascript\">"; echo "alert('เพิ่ม ข้อมูล เรียบร้อย');"; echo "window.location='show.php';"; echo "</script>"; }} //From พิมพ์ข้อความ <form action="?msg=add" method="post" enctype="multipart/form-data" id="test"> พิมพ์ข้อความ <input name="test" type="text" id="test" /><input name="" type="submit" value="ยืนยัน" /> </form>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง