插入数据的问题。

WBOY
Release: 2016-06-23 13:50:17
Original
763 people have browsed it

我把原来的表复制了一下 改了个名字  然后就插入不进去token 和时间了。 下面是代码和数据表 求解。


回复讨论(解决方案)

表。原来一模一样的表是可以插入进去的,只是改了个名字就这样了。

你先在写入数据库的代码之前,输出一下传过来的内容,看下有没问题先。

我是小白 - -!打印$this么?

输出插入的sql看看,看是否报什么错误、

是的话 传过来的数据没有问题啊。

怎么输出啊。 我是小白 刚学thinkphp没多久

插入的语句有错误的话。名字  应该也不会插入进去的吧

版主讲过:你是在框架里吧?你把表名改了,但没有生成相应的 model

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!