Php adds code. the local machine cannot add data PHPcode $ SetID $ _ REQUEST [ID] after uploading to the server. The price type is separated. $ temp_day & quot ;; $ temp_ary $ _ POST [SetCountID]; for ($ a0; $ a & lt; count ($ temp_ary); $ a ++) {$ temp_day php add code, data cannot be added when the local machine is uploaded to the server.
PHP code
$ SetID =$ _ REQUEST [ID]; // Price type of separation $ temp_day = ""; $ temp_ary =$ _ POST [SetCountID]; for ($ a = 0; $
1) {$ temp_day = "0 ,". $ temp_day;} else {$ temp_day = $ temp_day;} // separate departure date $ temp_str = ""; $ shyt = $ _ POST [SetCountID2]; for ($ I = 0; $ I
After several days of hard work, SQL statements can also be obtained. the corresponding value cannot be added.
Create table 'setdays '(
'Id' int (11) not null auto_increment,
'Teamdate' date not null,
'Returndate' date not null,
'Plannums' int (11) not null default '0 ',
'Takenums' int (11) not null default '0 ',
'P _ id' int (11) not null default '0 ',
'Bookingid' varchar (255) not null,
'Yndisable' int (11) not null default '0 ',
'Adddate' datetime not null,
Primary key ('id ')
ENGINE = InnoDB AUTO_INCREMENT = 160 default charset = gbk
No error is reported. Depressed
------ Solution --------------------
Check that the server cannot connect to the database.
------ Solution --------------------
Echo $ Insert_Days;
Post result
------ Solution --------------------
Some databases on the server, when inserting records, all fields must be given a default value. if not, the insertion will fail. I don't know if the landlord is in this situation.