mysql-thinkphp修改MySQL数据库字段失败
来源:动视网
责编:小采
时间:2020-11-09 16:47:02
mysql-thinkphp修改MySQL数据库字段失败
mysql-thinkphp修改MySQL数据库字段失败:mysqlthinkphpphp 想要修改数据表里的uname和phone字段而其他字段不变,提示失败$info['uname'] = I('uname'); $info['phone'] = I('phone');$uid = session('uid');$res=M('member')->where('uid = $uid
导读mysql-thinkphp修改MySQL数据库字段失败:mysqlthinkphpphp 想要修改数据表里的uname和phone字段而其他字段不变,提示失败$info['uname'] = I('uname'); $info['phone'] = I('phone');$uid = session('uid');$res=M('member')->where('uid = $uid

mysqlthinkphpphp
想要修改数据表里的uname和phone字段而其他字段不变,提示失败
$info['uname'] = I('uname');
$info['phone'] = I('phone');
$uid = session('uid');
$res=M('member')->where('uid = "$uid"')->setField($info);
mysql-thinkphp修改MySQL数据库字段失败
mysql-thinkphp修改MySQL数据库字段失败:mysqlthinkphpphp 想要修改数据表里的uname和phone字段而其他字段不变,提示失败$info['uname'] = I('uname'); $info['phone'] = I('phone');$uid = session('uid');$res=M('member')->where('uid = $uid