$deleteID = $_POST['oz'];
if(!$deleteID){
echo '2';
die;
} else {
//It should be working.
}
$checkVar = $pdo->prepare("SELECT * FROM `user_posts` WHERE `id`=:delete");
$checkVar->bindValue(':delete',$deleteID,PDO::PARAM_STR);
if($checkVar->execute() == false){
echo '2';
die;
}
我真的很生气。提供了 $deleteID,没有绑定任何内容。为什么不行,求大神帮忙。