Need some help!

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Monotoko
Forum Commoner
Posts: 64
Joined: Fri Oct 26, 2007 4:24 pm

Need some help!

Post 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.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

What have you coded so far?
Post Reply