O
O
Orotar842017-09-21 20:51:32
PHP
Orotar84, 2017-09-21 20:51:32

How to reset a cell in a database?

Hello! Who can tell me how to reset the cell.
Example (Users)
Nick1
Nick2
Nick3
Each Nick will have a click limit. For example, 100 clicks per day.
It is necessary that the field with clicks is reset every day at 00.00.00

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Sanych, 2017-09-21
@mountpoint

cron?

S
SagePtr, 2017-09-21
@SagePtr

MySQL also has an event scheduler: https://dev.mysql.com/doc/refman/5.7/en/event-sche... (it is disabled by default, you need to enable it in the config)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question