TP5where查詢OR用法和實現不同字段的相同查詢條件

 

$map['from_user|to_user']=session('id');
$list=db('inside_letter')->where($where)->where('to_msg_read=2 OR from_msg_read=2')->where($map)->limit($tol,$limit)->select();

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章