Jump to content

[SOLVED] how to add value to a filed every 24 hours?


berry05

Recommended Posts

Use a timestamp column in the database table.

 

IE column named "nextincrease" and set that to be 24hours from now.

 

The next time it is called you would do

 

if nextincrease < time() then add 50 and set nextincrease = time() + (60*60*24);

 

Hope that helps.

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.