如果你对该文章中的内容有疑问/不解,可以点击此处链接提问
要注明问题和此文章链接地址 点击此处跳转
tp3.2中使用fetchSql,不执行语句,只是做输出sql语句
$res_exi = $user_coupon->fetchSql()->where('user_id="'.$user_id.'" AND coupon_id="'.$id.'" ')->find();
if($res_exi){
echo "yes";
}else{
echo "no";
}
王明昌博客
