setField($info);"/> setField($info);">

Home >Database >Mysql Tutorial >mysql-thinkphp修改MySQL数据库字段失败

mysql-thinkphp修改MySQL数据库字段失败

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-06 09:37:041012browse

mysqlthinkphpphp

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

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn