thinkphp的问题

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)