<? include('connect.php'); $strSQL = "DELETE FROM ตาราง"; $strSQL .="WHERE รหัสหรือคีย์ในตารางนั้นๆ= '".$_GET["รหัสหรือคีย์"]."' "; $objQuery = mysql_query($strSQL) or die(mysql_error()); if($objQuery) { echo "<font color='red'><h> ลบข้อมูลเรียบร้อย !!</h></font>"; echo "<meta http-equiv=refresh content=1;URL=หน้าที่ต้องการ.php>"; } else { echo "Error Delete [".$strSQL."]"; echo "<meta http-equiv=refresh content=1;URL=หน้าที่ต้องการ.php>"; } //mssql_close($objConnect); ?>
<!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=windows-874" /> <title>Untitled Document</title> <script type="text/javascript" src="http://code.jquery.com/jquery.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("#myTable tr").click(function(){ $(this).remove(); return false; }); }); </script> </head> <body> <table id="myTable" width="485" border="1" cellspacing="0" cellpadding="0"> <tr> <td align="center">1</td> <td align="center">1</td> </tr> <tr> <td align="center">2</td> <td align="center">2</td> </tr> <tr> <td align="center">3</td> <td align="center">3</td> </tr> <tr> <td align="center">4</td> <td align="center">4</td> </tr> <tr> <td align="center">5</td> <td align="center">5</td> </tr> </table> </body> </html>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง