摘要:
tp框架where条件查询数据库 Where 条件表达式格式为: $map['字段名'] = array('表达式', '操作条件'); 其中 $map 是一个普通的数组变量,可以根据自己需求而命名。上述格式中的表达式实际是运算符的意义: ThinkPHP运算符 与 SQL运算符 对照表TP运算符SQL运算符例子实际查询条件eq=$map['id'] ... 阅读全文
posted @ 2017-10-30 18:00
刘俊涛的博客
阅读(3784)
评论(4)
推荐(1)
摘要:
publicfunctiongetUserInfo($uid){ if(is_null($uid)||empty($uid)){returnfalse;} if(is_array($uid)){ $where['user_id']=array('in',$uid); ... 阅读全文
posted @ 2017-10-30 16:46
刘俊涛的博客
阅读(667)
评论(0)
推荐(0)

浙公网安备 33010602011771号