为什么我显示删除成功了,但是数据库里的数据还在 ?
<?php
require_once('../connect.php');
$deletesql='delete from article where id=5';
if(mysql_query('$deletesql')){
echo "<script>alert('删除文章成功');</script>";
}else{
echo "<script>alert('删除文章成功');</script>";
};
?>
<?php
require_once('../connect.php');
$deletesql='delete from article where id=5';
if(mysql_query('$deletesql')){
echo "<script>alert('删除文章成功');</script>";
}else{
echo "<script>alert('删除文章成功');</script>";
};
?>
2018-12-05
举报