Thinkphp, heck, why is it possible to insert only through native SQL statements? Add but not

Source: Internet
Author: User

First of all, we have to look at the picture, beforehand that this is tp2.0, so the wording of my manual on the following, should be correct

So many fucking questions.
1: Print post to the data, can be printed out, is not because the form can be submitted correctly?

2: I use the Add method, just can't insert, why? I printed the statement, the statement is like this!!!

Why, Why? I completely followed the manual, and the manual was on it.

3: Inserted data, only the self-increment ID and default to 0int type of sort, nothing else can be entered the library

I can only add this way, the problem is this is not the way Ah, verification is troublesome, I want to through the normal create

Ask an expert!!!

Reply content:

First of all, we have to look at the picture, beforehand that this is tp2.0, so the wording of my manual on the following, should be correct

So many fucking questions.
1: Print post to the data, can be printed out, is not because the form can be submitted correctly?

2: I use the Add method, just can't insert, why? I printed the statement, the statement is like this!!!

Why, Why? I completely followed the manual, and the manual was on it.

3: Inserted data, only the self-increment ID and default to 0int type of sort, nothing else can be entered the library

I can only add this way, the problem is this is not the way Ah, verification is troublesome, I want to through the normal create

Ask an expert!!!

The data method seems to have a parameter filter, you see is not the Database model cache is not updated, or you try to directly use Add Bar

The main add insertion is missing $data [' image ']=$_post[' image '];?

  • 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.