<htrml> <title></title> <head> <META http-equiv="Content-Type" content="text/html; charset=tis-620" > <style type="text/css"> <!-- body { font : 0.9em verdana,geneva, Arial, helvetica, sans-serif; background-color: #fff; background-position:center; color: #000000; background-image: url(); background-repeat:no-repeat } </style> </head> <body> <table width="100%" border="1" cellspacing="1" cellpadding="1"> <tr> <td align="center" bgcolor="#e1e1e1"><b>a1</b></td> <td align="center" bgcolor="#e1e1e1"><b>a2</b></td> <td align="center" bgcolor="#e1e1e1"><b>a3</b></td> <td align="center" bgcolor="#e1e1e1"><b>a4</b></td> <td bgcolor="#e1e1e1"><b>ลบ</b></td> </tr> <? include("dbconfig.php"); $result = mysql_query("select id,name,song,singer from resong order by id"); mysql_query('SET CHARACTER SET tis620'); while ($r=mysql_fetch_array($result)){ $id=$r[id]; $name=$r[name]; $song=$r[song]; $singer=$r[singer]; echo " <tr> <td>$id</td> <td>$name</td> <td>$song</td> <td>$singer</td> <td><a href='delete.php?resong=$id' onclick=\"return confirm('คุณแน่นใจหรือไม่ ?')\">ลบ</a></td> </tr>"; $number++; } ?> </table> </body> </html>
<htrml> <title>ลบข้อมูล</title> <head> <META http-equiv="Content-Type" content="text/html; charset=tis-620"> </head> <body> <? $resong=$_GET['resong']; include "dbconfig.php"; $sql="delete from resong where id=$resong"; mysql_db_query($dbname,$sql); echo "<h2><a href='show.php'>ลบข้อมูลเรียบร้อยแล้วครับ</a></h2>"; ?> </body> </html>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง