I'm actually having a problem with the logic behind this, I just can't seem to understand how I'm going to make it happen. What I need is...
I run a script every 24 hours that changes a user, right? Let's say every 24 hours I give them 1+ reputation for staying. Okay, but now let's say that user is special, like they are a helper or something, so every 24 hours, they'll get +2 rep instead.
What I don't get is the actual if statement for that...
Like, if ($userstatus == 'helper'), then it would only upgrade those that were considered helpers with +2, and then I guess it'd be like "else, just give +1 rep".
My script looks like this.
Code: Select all
mysql_query("UPDATE user SET inactivedays = inactivedays+1");