<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>เว็บ 3.0</title> </head> <body> <? //include "connect.php"; $objConnect = mysql_connect("localhost","fqa","") or die("Error Connect to Database"); $objDB = mysql_select_db("fqa"); $strSQL = "INSERT INTO fqa"; $strSQL .="(id,head,detail,num)"; $strSQL .="VALUES "; $strSQL .="('".$_POST["id"]."','".$_POST["head"]."','".$_POST["detail"]."' "; $strSQL .=",'".$_POST["num"]."')"; //,'".$_POST["txtBudget"]."','".$_POST["txtUsed"]."') "; $objQuery = mysql_query($strSQL); mysql_query("SET CHARACTER SET utf8"); if($objQuery) { echo "<script language='javascript'>alert('บันทึกเรียบร้อย ');</script>"; print "<meta http-equiv=refresh content=2;URL=sendfaq.php?mode=yes>"; exit(); } else { echo "<script language='javascript'>alert('ไม่สามารถบันทึกคำถามหรือดำเนินการอย่างอื่นได้ โปรดติดต่อผู้ดููแลระบบ [".$strSQL."]');</script>"; print "<meta http-equiv=refresh content=2;URL=faq_new.php>"; exit(); } mysql_close($objConnect); ?> <meta http-equiv="refresh" content="2; URL=sendfaq.php?mode=yes"> </body> </html>
Quote:mysql_query("SET CHARACTER SET utf8");
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง