Cronwerks MCCode/MCCodes Forums

Please login or register.

Login with username, password and session length

News:

Have you purchased a mod and are struggling to install it? Cronwerks now installs mods for only $3/$2.50. Message Cronus to discuss the details or purchase.


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

AuthorTopic: Donator bank help  (Read 88 times)

KyleMassacre

  • Basic Member
  • *
  • Reputation Power: 8
  • KyleMassacre has no influence.
  • Offline Offline
  • Posts: 4
    • View Profile
Donator bank help
« on: January 20, 2012, 09:54:11 AM »
Im having an issue with members recieving interest in their donator bank I could swear ive tried everything and nothing works. This is what I have set up in my cron day, can someone please help?

$db->query("UPDATE users SET donatorbank=donatorbank+(donatorbank/100*6) where > 0");
Logged

Cronus

  • Administrator
  • Senior Member
  • *****
  • Reputation Power: 2901
  • Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!
  • Offline Offline
  • Posts: 550
    • MSN Messenger - preston__08@hotmail.com
    • View Profile
    • WWW
Re: Donator bank help
« Reply #1 on: January 20, 2012, 01:29:13 PM »
Code: [Select]
$db->query("UPDATE users SET donatorbank=donatorbank+(donatorbank/100*6) where > 0");
the problem is this:
Code: [Select]
where >0
you have nothing before the >0, where what is greater than 0? that should probably be:
Code: [Select]
where donatorbank>0
« Last Edit: January 20, 2012, 01:31:07 PM by Cronus »
Logged
My msn is preston__08@hotmail.com if anyone is interested, I am online frequently.

KyleMassacre

  • Basic Member
  • *
  • Reputation Power: 8
  • KyleMassacre has no influence.
  • Offline Offline
  • Posts: 4
    • View Profile
Re: Donator bank help
« Reply #2 on: January 20, 2012, 01:42:21 PM »
Alright thanks, its always the obvious that gets me haha
Logged
 


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