TP Data Insertion Encounter a hell of a problem, help!

Source: Internet
Author: User

This is the form for adding pages, look at the sort of that

This is the controller code.

This is the database.

The problem is, what a ghost!!!

I am such a simple form, why inserted, the sort field is not inserted into the table? Look at my controller, whether with the default, or specifically with $_post collected into the insert, are not plugged in, I printed the SQL statement, found that he did not write this field in

I'm really broke, I don't know where it went wrong and that's why

Database, Paixu field, is an int (10), I take this name because the sort is dead or alive I thought it was the keyword, so changed.

Also, the model I did not write, so it is not because of the problem of the model, it is limited to receive a few data of the

Do you have a great God to help you look? Has anyone touched the problem? Thank you, guys.

Reply content:

This is the form for adding pages, look at the sort of that

This is the controller code.

This is the database.

The problem is, what a ghost!!!

I am such a simple form, why inserted, the sort field is not inserted into the table? Look at my controller, whether with the default, or specifically with $_post collected into the insert, are not plugged in, I printed the SQL statement, found that he did not write this field in

I'm really broke, I don't know where it went wrong and that's why

Database, Paixu field, is an int (10), I take this name because the sort is dead or alive I thought it was the keyword, so changed.

Also, the model I did not write, so it is not because of the problem of the model, it is limited to receive a few data of the

Do you have a great God to help you look? Has anyone touched the problem? Thank you, guys.

Tell me about the situation I encountered before, the table added a field, turn off the debug mode form submitted data can not be put into storage, debug back to normal, and then delete the runtime/data/_fields/folder under the database cache file is OK. I do not know if it is the same as my case, the cache is the old data table structure.

Did you not define the Paixu field in your model?

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