setField($info);"/> setField($info);">
Home > Database > Mysql Tutorial > body text

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

WBOY
Release: 2016-06-06 09:37:04
Original
952 people have browsed it

mysqlthinkphpphp

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!