Fanely Posted June 9, 2013 Share Posted June 9, 2013 Error Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[21S01]: Insert value list does not match column list: 1136 Column count doesn't match value count at row 1' in /home/content/97/11030597/html/new/classes/admin.class.php:103 Stack trace: #0 /home/content/97/11030597/html/new/classes/admin.class.php(103): PDOStatement->execute(Array) #1 /home/content/97/11030597/html/new/admin.php(27): Admin->addEventTime('I6HLkmJBWdMazcw...', 'Example1', 'Example1', 'Example Floor', '12:00', 'pm', 'boy', 'Example City', 'Example Street', 'Example State', '16248') #2 {main} thrown in /home/content/97/11030597/html/new/classes/admin.class.php on line 103 Line 103: $add->execute(array(NULL, $time, $floor, $opponent, $team, $event, $gender, $city, $street, $state, $zipcode)); What is wrong? Quote Link to comment https://forums.phpfreaks.com/topic/278948-fatal-error-uncaught-exception-pdoexception/ Share on other sites More sharing options...
Solution DavidAM Posted June 9, 2013 Solution Share Posted June 9, 2013 As the error says: Insert value list does not match column list: 1136 Column count doesn't match value count The execute method of whatever object you are using is building an INSERT statement. But the number of columns specified in the INSERT statement; or if none are specified; the number of columns in the table; does not match the number of values provided. Quote Link to comment https://forums.phpfreaks.com/topic/278948-fatal-error-uncaught-exception-pdoexception/#findComment-1434927 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.