Yii Data add error

Source: Internet
Author: User
Tags yii
Yii Data add error
I used the GII to generate the article model
.....
Public Function Actioninsert () {
$ARTICLR _mode=new article ();
$ARTICLR _mode->article_title=$_post["title"];
$ARTICLR _mode->article_content=$_post["Content"];
$ARTICLR _mode->article_picture=$_post["Picname"];
$ARTICLR _mode->article_createtime=date (' y-m-d h:i:s ', Time ());
$ARTICLR _mode->article_state=1;
if ($articlr _mode->save ()) {
echo "Yes";
}else{
echo "No";
}
......
}
The page returned "No", no other error, not know where it was wrong.
Add error_reporting (E_all) to the page;
There are data in the $_post.
Here is my database table



------to solve the idea----------------------
Go to Yii website to see the operation of the database
  • Related Article

    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.