Membership is FREE – with unlimited access to all features, tools, and discussions. Premium accounts get benefits like banner ads and newsletter exposure. ✅ Signature links are now free for all. 🚫 No AI-generated (LLM) posts allowed. Share your own thoughts and experience — accounts may be terminated for violations.

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?
 

Bender

Bending
The Originals
Legacy Exclusive Member
Joined
Apr 16, 2004
Messages
1,737
Reaction score
0
You need to set a Cron job that will run a PHP script wich will update the table.
 

Stinos

DNF Addict
The Originals
Legacy Exclusive Member
Joined
May 25, 2004
Messages
1,435
Reaction score
1
Crazysah said:
What is MMO?

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

Crazysah

New Member
The Originals
Legacy Platinum Member
Joined
Oct 30, 2004
Messages
255
Reaction score
0
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:
 

Stinos

DNF Addict
The Originals
Legacy Exclusive Member
Joined
May 25, 2004
Messages
1,435
Reaction score
1
no problem. :cheeky:

and cron job is indeed the solution for the problem.
 

lukeeales

New Member
The Originals
Legacy Platinum Member
Joined
Jun 27, 2004
Messages
1,172
Reaction score
0
massive multiplayer online, to be exact. and thanks for the tip, i'll have to research that. :)
 

darrenl

New Member
The Originals
Legacy Platinum Member
Joined
Sep 22, 2003
Messages
1,856
Reaction score
4
Be aware that if your game is real popular make sure when you move to a new server you reset the cron job.
 

cambler

New Member
The Originals
Legacy Platinum Member
Joined
May 3, 2004
Messages
473
Reaction score
0
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.
Top Bottom