Help writing a query
I want to set up a cron job for this, but not sure how to do the query.
I want to reduce every users Rep by a certain amount, say 10, who has not logged in for over 24 hours.
Guessing it involves updating the User Rep table using a conditional of useractivity, but...
I'd appreciate anyone who KNOWS how to write this query so I can insert into a daily cron.
Cheers,
G_Man.
|