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

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

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

原文地址:https://www.cnblogs.com/yangzailu/p/6337317.html