Thinkphp: why can't it be inserted only through native SQL statements? Add does not work.

Source: Internet
Author: User
First of all, let's take a look at the figure. it indicates that this is tp2.0 in advance, so I have written the following manuals. it should be correct. Question 1: print the POST data, it can be printed out. Is it because the form can be correctly submitted? 2: I am using the add method, that is, it cannot be inserted. it is...

First of all, let's take a look at the figure. it indicates that this is from tp2.0 in advance, so I have written all the following manuals. it should be correct.

Such a few tricks
1: printing POST data can be printed out. Is it because the form can be correctly submitted?

2: I used the add method, but I cannot insert it. why? I printed the statement. The statement is like this !!!

Why? I completely follow the instructions in the manual.

3: only the auto-increment id and the default sort of the 0int type are inserted.

I can only use this method to add it. The problem is that this is not a solution, and verification is troublesome. I just want to use the normal create

An expert !!!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.