Jump to content
MakeWebGames

Recommended Posts

Posted

QUERY ERROR: Column count doesn't match value count at row 1

Query was INSERT INTO items VALUES('',1000,'IQ Potion','Gain 50,000 IQ through drinking this magic Potion',0,0,1, '1', 'a:4:{s:4:\"stat\";s:2:\"IQ\";s:3:\"dir\";s:3:\"pos\";s:8:\"inc_type\";s:6:\"figure\";s:10:\"inc_amount\";i:50000;}', '0', 'a:4:{s:4:\"stat\";s:6:\"energy\";s:3:\"dir\";s:3:\"pos\";s:8:\"inc_type\";s:6:\"figure\";s:10:\"inc_amount\";i:0;}', '0', 'a:4:{s:4:\"stat\";s:6:\"energy\";s:3:\"dir\";s:3:\"pos\";s:8:\"inc_type\";s:6:\"figure\";s:10:\"inc_amount\";i:0;}', 0, 0, 0, 0, 0, 0)

 

Is the error i get. any help?

Posted

QUERY ERROR: Column count doesn't match value count at row 1

Read it :)

Youve edited the item table, and havnt updated the query. Theres 100000's of topics like this, please use the search next time :)

Posted

Or you didn't fill in one of the fields! Even if you don't want the item to say have a buy price you still have to put a 0 into the box or it'll error like it has for you. Or as Danny has said you've got extra fields in your database which you've not modified your control panel to handle.

  • 9 years later...
Posted
1 hour ago, rednspirited said:

ok i cant figure what im doing wrong i have all the fields filled but i still get an error saying that they are not filled 

Opera Snapshot_2020-11-17_135427_battleforobsidianmoon.com.png

Opera Snapshot_2020-11-17_135559_battleforobsidianmoon.com.png

If you find the if statement for that error message and completely remove it, it should work as it did for me 

  • Like 1

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.   Paste as plain text instead

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