• Welcome to DNForum.com - Domain Investor Forum, Free Domain Marketplace and a community for 45+ domain pros
    If you are new to domains and looking to buy, sell and learn about domains then you have come to the right place. DNForum is the oldest global domain name community on the internet and continues to grow every day. There are over 45,000 domainers on DNForum doing everything from buying domains, selling domains, using our free in-house built tools, learning about domains and discussing domains. Take a minute and Register.

Database update question

Status
Not open for further replies.

lukeeales

New Member
The Originals
Legacy Platinum Member
Joined
Jun 27, 2004
Messages
1,172
Reaction score
0
Hi - i want to run a process every hour that for example adds 5% onto the "money" column for every entry in a PHP database. The % will change but that doens't matter, I just need to know how to run an hourly process. This is for an MMO my collegue is developing.

Can anyone help?
 
You need to set a Cron job that will run a PHP script wich will update the table.
 
Crazysah said:
What is MMO?

i think it's about online multiplayer gaming ... :wink: but i dont' know what MMO means 8-)g
 
Stinos said:
i think it's about online multiplayer gaming ... :wink: but i dont' know what MMO means 8-)g

Thanks for the info :wink:
 
no problem. :cheeky:

and cron job is indeed the solution for the problem.
 
massive multiplayer online, to be exact. and thanks for the tip, i'll have to research that. :)
 
Be aware that if your game is real popular make sure when you move to a new server you reset the cron job.
 
Any database worth three cents will have scheduled execution as a built-in function. Use it, that's what it's there for.
 
Status
Not open for further replies.
Back
Top Bottom