Jump to content
MakeWebGames

Recommended Posts

Posted

Re: [mccode] Voting token exchange

 

in all your queries that are of this format

$db->query("UPDATE users SET health=maxhealth, votetokens=votetokens-2");

you need change to fit this

$db->query("UPDATE users SET health=maxhealth, votetokens=votetokens-2 WHERE userid=$ir['userid']");

otherwise the database does not know which specific user update

I would personally re-write that query as

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Posted

Re: [mccode] Voting token exchange

 

in all your queries that are of this format

$db->query("UPDATE users SET health=maxhealth, votetokens=votetokens-2");

you need change to fit this

$db->query("UPDATE users SET health=maxhealth, votetokens=votetokens-2 WHERE userid=$ir['userid']");

otherwise the database does not know which specific user update

I would personally re-write that query as

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

or get bored and do

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

  • 3 weeks later...

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