01.
<?
02.
03.
04.
05.
06.
$id_del
=
$_GET
[id_del];
07.
08.
09.
10.
11.
12.
13.
include
"config.php"
;
14.
echo
"id_del="
.
$id_del
;
15.
$sql
=
"delete from db_news where id_new='$id_del' "
;
16.
$result
=mysql_db_query(
$dbname
,
$sql
);
17.
if
(
$result
) {
18.
echo
"<h3>ลบข้อมูลเรียบร้อยแล้วค่ะ</h3>"
;
19.
echo
"[<a href=../new_main.php target=new>กลับหน้าหลัก</a> ]"
;
20.
}
else
{
21.
echo
"<h3>ไม่สามารถแก้ไขข้อมธูลได้</h3>"
;
22.
}
23.
mysql_close();
24.
?>
27.
<head>
28.
<meta http-equiv=
"Content-Type"
content=
"text/html; charset=utf-8"
/>
29.
<title>Untitled Document</title>
30.
</head>
31.
32.
<body>
33.
34.
</body>
35.
</html>