Jump to content

Fatal error: Uncaught exception 'PDOException'


Fanely
Go to solution Solved by DavidAM,

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?

Link to comment
Share on other sites

  • Solution

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.