thinkphp调用model对象的execute方法返回bool(false)

WBOY
Release: 2016-06-20 12:51:42
Original
1233 people have browsed it

	   $m=M();	   $count=$m->execute("insert into tp_user('username') values('库里')");	   var_dump($count);
Copy after login

调用这一句时没有成功返回bool(false),求解到底哪里可能出错了


这是使用错误吗?还是语法问题


回复讨论(解决方案)

insert into tp_user (`username`) values ('库里')

soga,可以了谢谢这位老师

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!