Spookyboy3000
Member
- Apr 28, 2020
- 42
- 6
How and in which file can i create an event that runs a query every x minutes
But if i do:Turn on the scheduler for MySQL and if you're using Navicat there is an event building window you can define how often it runs
but if i do:
UPDATE users SET vip_points = vip_points + '100'
it works perfect but then the people who are offline, also gets diamonds
Post automatically merged:
Code:
SET GLOBAL event_scheduler = ON;
2) Open Navicat and go to the events tab, create a new event that executes every x minutes and set the definition as:
Code:
UPDATE users SET vip_points = vip_points + 1 WHERE online = '1';
Post automatically merged:
That is what i did