Jump to content
MakeWebGames

Recommended Posts

Posted

I want to give all my donators extra turns in the streets.

so for donators they get 100 turns at new day,

non-donators get 70 turns at new day....

I have tried the following but dosn't work..

 

if($ir['donatordays'])
{
$db->query("UPDATE users SET turns=turns+100");
}
else
{
$db->query("UPDATE users SET turns=turns+70");

 

and

 

$db->query("UPDATE users SET turns=70 where donatordays <=0);
$db->query("UPDATE users SET turns=100 where donatordays > 0);

 

and also

 

if($ir['donatordays'] <= 0)
{
$db->query("UPDATE users SET turns=70");
}
else if($ir['donatordays'] > 0)
{
$db->query("UPDATE users SET turns=70");

 

Can soem one tell me what i've done wrong?

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