if($_POST['uniq']){
$st = $conn->prepare("SELECT * FROM user_friends WHERE (send_to=:uniq OR send_from=:Uniq) AND (send_to=:Uniq OR send_from=:uniq) AND clearence='1'");
$st->bindParam("Uniq", $friend);
$st->bindParam("uniq" , $uniq);
$st->execute();
if($st->rowCount() > 0)
{
echo 'friend';
}
$st1 = $conn->prepare("SELECT * FROM user_friends WHERE send_to=:uniq AND send_from=:Uniq AND clearence='0'");
$st1->bindParam("Uniq", $friend);
$st1->bindParam("uniq" , $uniq);
$st1->execute();
if($st1->rowCount() > 0)
{
echo 'uncleared';
}
}else{
echo 'Something Went Wrong!';
}
没有响应数据返回但是ajax请求成功发送的参数。