Jump to content

Fatal error: Uncaught exception 'PDOException'


Fanely

Recommended Posts

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?

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.