為什么我顯示刪除成功了,但是數(shù)據(jù)庫里的數(shù)據(jù)還在 ?
<?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>";
};
?>
2020-03-27
你這個(gè)條件判斷有問題吧