错误列计数与第1行的值计数不匹配

时间:2018-01-04 20:07:22

标签: php

$query = "Insert Into dbo_dailyline (Entry_date, Work_Center, Shift_Length, Number_Sewers, Deduct_Hours, Garment_Type, Other, Quantity, Notes)
values ('" .$Entry_Date. "', '" . $Shift_Length . "', '" .$Coats . "', '" . $Number_Sewers . "', '" . $Deduct_Hours . "', '" . $Garment_Type . "' , '" . $Garment_Type . "', '" . $Other . "', '" . $Quantity . "', '" . $Notes . "')";

错误列数与第1行的值计数不匹配

1 个答案:

答案 0 :(得分:1)

您有两次$Garment_Type删除一个

$query = "Insert Into dbo_dailyline (
        Entry_date
        , Work_Center
        , Shift_Length
        , Number_Sewers
        , Deduct_Hours
        , Garment_Type
        , Other
        , Quantity
        , Notes)
          values ('" . 
            $Entry_Date. "', '" . 
            $Shift_Length . "', '" .
            $Coats . "', '" . 
            $Number_Sewers . "', '" . 
            $Deduct_Hours . "', '" . 
            $Garment_Type . "' , '" . 
            $Other . "', '" . 
            $Quantity . "', '" . 
            $Notes . "')";