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