📜  mysqli 检查删除是否成功 - CSS 代码示例

📅  最后修改于: 2022-03-11 14:47:26.156000             🧑  作者: Mango

代码示例1
$sql = "DELETE FROM art WHERE id='5'"; 
if($db->query($sql)=== TRUE) {
        $message = "good"; // all worked good.
}else{
        $message = "bad"; // didnt work because something was wrong
}