Jump to content

Give Item Error


Recommended Posts

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.


Link to comment
Share on other sites

Join the conversation

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

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