H
H
horsok2019-01-23 17:04:40
PHP
horsok, 2019-01-23 17:04:40

How to update value in database over time?

The question is: is it possible to make it so that after 5 minutes the record in the database table will change by a certain number?
For example, there were 100 coins, and after an hour it became 340

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergej, 2019-01-23
@horsok

Certainly. Use cron which will run the script every 5 minutes.
And that, in turn, change the data as you need.
5 * * * * /path/command.php

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question