Cronwerks MCCode/MCCodes Forums

Please login or register.

Login with username, password and session length

News:

Register your account to receive email notifications when new services and mods are added.


This forum is now closed and has moved to a new location! Click here to find out why.

AuthorTopic: Item Add Help!  (Read 426 times)

dmkmonkey

  • Basic Member
  • *
  • Reputation Power: 23
  • dmkmonkey has no influence.
  • Offline Offline
  • Posts: 11
    • View Profile
    • Email
Item Add Help!
« on: February 25, 2011, 01:20:40 PM »
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?
Logged

JoshuaDams

  • Active Member
  • **
  • Reputation Power: 129
  • JoshuaDams is working their way up.JoshuaDams is working their way up.JoshuaDams is working their way up.
  • Offline Offline
  • Posts: 240
    • MSN Messenger - immortalthug4ever@hotmail.com
    • View Profile
    • WWW
Re: Item Add Help!
« Reply #1 on: April 04, 2011, 10:21:33 PM »
Is what it says

The code that Inserts the Data into the Database Has more or less slots than The Database Table

Example

The code may say insert "id number, name, total"

But the database may only have  ID, NAME


So you're trying to insert 3 items, you'd need 3 tables

could be a coding error, or could be your database table isnt set up properly.
 


This forum is now closed and has moved to a new location! Click here to find out why.