Updating a MySQL table every X minutes

Stängt Publicerat 7 år sedan Betalades vid leverans
Stängt Betalades vid leverans

I am currently toying around with a little RPG sort of game.

I am wanting to update a users energy every X minutes.

I know this is possible with a cron, however i am wanting this to work in real time (aswell as for offline).

Basically I am wanting a little timer under the energy stat point counting down, as it reaches 0 the energy is updated via 1, and the timer goes back to X minutes and counts down again, repeating the process.

I need this to work if the user is online, and if the user is offline.

I need checks in place so the user cannot spoof the timer in anyway by changing the time on their device?

This will need to be tested prior to releasing funds.

Thanks

AJAX JavaScript jQuery/Prototype MySQL PHP

Projekt-id: #11649804

About the project

7 offerter Distansprojekt Aktivt 7 år sedan

7 frilansare har lagt bud på i genomsnitt $29 för det här jobbet

Paznek

Hi ! How long is the "smaller" timer ? If it's every minutes at least, you can do a cron job. Cron will affect everybody. If you use cron for offline and another technique for online, you'll get issues I thin Mer

$50 USD inom 5 dagar
(25 omdömen)
6.8
PARITech

Hi There, Ready to start right now. Thank You

$25 USD inom 1 dag
(17 omdömen)
3.9
blankenshipdg

9 years experience / web development 7 years experience / mobile app development 2 years experience / graphic design I have mastered the process of developing marketplace based platforms for rides, delivery. Mer

$25 USD inom 1 dag
(0 omdömen)
0.0
SeyiLanlege

I'll write a Javascript function with the setInterval method, that updates lives everyyime at a specified interval.

$15 USD inom 0 dagar
(1 omdöme)
0.0