Page 1 of 1

Need some help!

Posted: Fri Oct 26, 2007 4:30 pm
by Monotoko
hi guys, im in the process of coding a game, and i have abit of a problem

i would like a script known as "h_hourly_maint.php" to go off every 30 mins, now i know il need a cron job for this
what i want it to do is grab all the users from my DB where mining is set to 2, then i want it to look in the "mining_rate" table of these users.

each users mining rate will be differant, so what i want it to do is:

-get all users where mining=2
-sort through the users and add "mining_rate" to total mined


all the users rates will be differant, i just aint sure how to write a script to do this, can anyone help?
[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1 wrote:2. Use descriptive subjects when you start a new thread. Vague titles such as "Help!", "Why?" are misleading and keep you from receiving an answer to your question.

Posted: Fri Oct 26, 2007 5:24 pm
by RobertGonzalez
What have you coded so far?