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

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

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

05-17 20:38