yangzailu

导航

thinkphp更新数据库的时候where('')为字符串

if($user->where('phone='.$phone)->save($dataList)){}
if($user->where(array('phone' =>$phone))->save($dataList)){}

thinkphp更新数据库的时候where('')为字符串,要么为数组。为字符串要点连接

posted on 2017-01-21 16:49  飞离地平线  阅读(274)  评论(1编辑  收藏  举报