article.del.handle.php
<?php
require_once ('connect.php');
$deletesql='delete from article where id =2 ';
if(mysql_query($deletesql)){
echo "<script>alert('删除文章成功');</script>";
}else{
echo "<script>alert('删除文章失败');</script>";
}
?>
修改
article.modify.php
<?php
require_once ('connect.php');
$id=$_GET['id'];
$deletesql="delete from article where id =$id ";
echo $deletesql;
if(mysql_query($deletesql)){
echo "<script>alert('删除文章成功');</script>";
}else{
echo "<script>alert('删除文章失败');</script>";
}
?>
http://127.0.0.1/mysql/www/article.del.handle.php?id=1