`幫助初學者水平 這裏是錯誤MySql的說法錯誤:SQLSTATE [21S01]:插入值列表不匹配列列表:1136列數並不在行匹配值計數1
MySql語句錯誤:SQLSTATE [21S01]:插入值列表不匹配列列表:1136列計數與第1行的值計數不匹配SQL:插入表單值('danish','122016','danish.baksh @ hyperquality.com','devloper','marketing','danish baksh','[email protected]','156','fdjfj','564','fjf','867',' dfj','5344','contactus.png','0')
查詢
$qry="insert into form values('$empname','$empcode','$empemail','$designation','$process','$supervisior','$supemail','$expense1','$aboutexp1','$expense2','$aboutexp2','$expense3','$aboutexp3','$total','$file_name','0')";
這裏是數據庫
CREATE TABLE `form` (
`empname` varchar(50) DEFAULT NULL,
`empcode` varchar(50) DEFAULT NULL,
`empemail` varchar(50) DEFAULT NULL,
`designation` varchar(50) DEFAULT NULL,
`process` varchar(50) DEFAULT NULL,
`supervisior` varchar(50) DEFAULT NULL,
`supemail` varchar(50) DEFAULT NULL,
`expense1` int(50) DEFAULT NULL,
`aboutexp1` varchar(50) DEFAULT NULL,
`expense2` int(50) DEFAULT NULL,
`aboutexp2` varchar(50) DEFAULT NULL,
`expense3` int(50) DEFAULT NULL,
`aboutexp3` varchar(50) DEFAULT NULL,
`total` int(50) DEFAULT NULL,
`bill` varchar(50) DEFAULT NULL,
`approved` tinyint(1) DEFAULT '0'
) ENGINE=MyISAM DEFAULT CHARSET=latin1
問如果u需要更多
你應該在你的表中有主鍵。 – Manish