限时免费试用:欢迎注册 api.bigmodel.org ,快速体验大模型 API 接入服务。
当前位置:首页 >疑难片段

tp3.2中使用fetchSql,不执行语句

分类:疑难片段时间:2018-01-25浏览:4491
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";
}
本站文章如未注明出处均为原创,转载请注明出处,如有侵权请邮件联系站长。
0/500
Share your thoughts respectfully.