Error Column count doesn't match value count at row 1?

前端 未结 3 993
情深已故
情深已故 2021-01-29 08:06

where is error..... Column count doesn\'t match value count at row 1

mysqli_select_db($conn, $data);
    $save = \"INSERT INTO SONG_AS(ALBUM, CATEGORY, SUB_CATEG         


        
3条回答
  •  北海茫月
    2021-01-29 08:50

     $query = "INSERT INTO employee VALUES ($empno','$lname','$fname','$init','$gender','$bdate','$dept','$position','$pay','$dayswork','$otrate','$othrs','$allow','$advancesance,'')";
        $msg = "New record saved!";
      }
      else {
        $query = "UPDATE employee SET empno=$empno','lname='$lname',fname='$fname',init= '$init',gender='$gender',bdate='$bdate',dept='$dept',position='$position',pay=$pay,dayswork=$dayswork,otrate=$otrate,othrs=$othrs,allow=$allow,advances=$advances,insurance=$insurance WHERE empno = $empno";
        $msg = "Record updated!";
      }
    

提交回复
热议问题