<? $id_del=$_GET[id_del]; echo "$id_del"; include "connect.php"; $sql="delete from car where id='$id_del' "; $sqlquery=mysql_db_query($dbname,$sql); echo "<H3>ลบ ข้อมูลเรียบร้อยแล้ว</H3>"; echo "[ <A HREF=showall.php>กลับหน้าหลัก</A>] "; //echo "<meta http-equiv=refresh content=2;URL='showall.php'>"; mysql_close(); echo "<script>alert('ได้ทำการลบ เป็นที่เรียบร้อย'); window.location='showall.php?start=0&page=1';</script> "; ?>
$sqlquery=mysql_db_query($dbname,$sql); if (!$sqlquery) { echo "DB Error, could not query the database\n"; echo 'MySQL Error: ' . mysql_error(); exit; }
mysql_connect($host,$user,$pw) or die("ติดต่อ Host ไม่ได้"); mysql_select_db($dbname) or die("ติดต่อฐานข้อมูลไม่ได้"); mysql_query("SET character_set_results=tis620"); mysql_query("SET character_set_client='tis620'"); mysql_query("SET character_set_connection='tis620'"); mysql_query("collation_connection = tis620_thai_ci"); mysql_query("collation_database = tis620_thai_ci"); mysql_query("collation_server = tis620_thai_ci");
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง