Jump to content
MakeWebGames

Recommended Posts

Posted

Re: Give Item Error

Heres the problem were having we add a line in the inventory table and then when trying to send from the admin panel we get the Column count doesn't match value count at row 1 error

Posted

Re: Give Item Error

if you go through when you are doing mods to the code, and change the main queries to specify the info that you want to update or insert into the DB you will never have to modify the queries again, here is an example of what I'm talking about

 


mysql_query("INSERT INTO `items` (`itmid`, `itmtype`, `itmname`, `itmdesc`, `itmbuyprice`, `itmsellprice`, `itmbuyable`) VALUES (NULL, '8', '{$_POST['itemname']}', '', '0', '0', '0')",$c);

 

I highly suggest that you do it at least on the registration.php file so that anytime you add new features to the game that require adding more fields to the users table, you will not have to go back and modify the registration table.

R.F.

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