Insert Data into MSSQL DB using PHP

后端 未结 4 1052
轻奢々
轻奢々 2020-12-22 03:37

Hello there am trying to insert data into MSSQL using PHP. I have tried many times to figure out what the problem might be but i seem not to find it. Is there something am n

4条回答
  •  醉话见心
    2020-12-22 04:11

    Hmm, it seems to me that you have 7 fields in the table but only 6 values submitted - you are missing the value for the first column, [No_]. Besides, the last column satus (i suppose it should be 'status') does not have de [] delimiters. The error returned tells you that the name of the table is wrong. And yes variable names are case sensitive in PHP, it should be $leave - best to exit the string and concatenate - something like "bla bla".$leave."anything here with spaces or not" .

提交回复
热议问题