PHP add code, the machine can not add data by the next to the server

Source: Internet
Author: User
PHP add code, this machine can not add data by uploading to the server
PHP Code
  $SetID =$_request[id];//separation Price Type $temp_day = ""; $temp _ary = $_post[setcountid];for ($a =0; $a
  
   
    1) {$temp _day= "0,". $temp _day;} else{$temp _day= $temp _day;} Separation Departure Date $temp_str = ""; $shyt = $_post[setcountid2];for ($i =0; $i 
    
     < pre="">
     

   
  


Toss for several days, SQL statements can also be obtained, the corresponding value is not added

CREATE TABLE ' Setdays ' (
' ID ' int (one) not NULL auto_increment,
' Teamdate ' date not NULL,
' Returndate ' date not NULL,
' Planenums ' int (one) not NULL default ' 0 ',
' Takenums ' int (one) not NULL default ' 0 ',
' p_id ' int (one) not NULL default ' 0 ',
' Bookingid ' varchar (255) is not NULL,
' Yndisable ' int (one) not NULL default ' 0 ',
' Adddate ' datetime not NULL,
PRIMARY KEY (' ID ')
) Engine=innodb auto_increment=160 DEFAULT CHARSET=GBK

What is the reason, without any error. Depressed in

------Solution--------------------
Let's see if we can connect to the database on the server.
------Solution--------------------
echo $Insert _days;
Post the results
------Solution--------------------
Some servers on the database, when inserting records, all fields must give a default value, if not given, the insertion is unsuccessful, do not know whether the landlord is this situation
  • 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.