thinkphp对象方式更新数据库,更新失败
$userTable=M('user');
$userTable->sex=$sex;
$userTable->birth=$birthday;
$userTable->school=$school;
$userTable->province=$province;
$userTable->city=$city;
$userTable->where("username='$username'")->save();
thinkphp对象方式更新数据库,更新失败
$userTable=M('user');
$userTable->sex=$sex;
$userTable->birth=$birthday;
$userTable->school=$school;
$userTable->province=$province;
$userTable->city=$city;
$userTable->where("username='$username'")->save();