![]() |
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. |
<font size="2">umm... help?</font>
|
Not tested...
PHP Code:
|
Quote:
CHEERS!! Works a treat. |
I'm pretty sure you could reduce the active part to just one query ;
PHP Code:
|
Quote:
Yep... I'll prune them at some point anyway. Thanks for the alternative code, too, Paul. :) |
interesting.. so where does this go?
|
As a new cron job probably (new file).
|
All times are GMT. The time now is 10:52 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|