Quote (carteblanche @ Mar 31 2016 07:06pm)
why not just do it in mysql?
Code
SET GLOBAL EVENT_SCHEDULER = ON;
CREATE EVENT truncate some_table_name
ON SCHEDULE EVERY 1 MINUTE
DO
TRUNCATE TABLE 'some_table_name';
trust me i tried this
it gives me a error saying i need SUPER access
the only way i think it works with my hosting is Cron JOBS
iv literally spent hours trying to figure this out
this isnt hw btw, this is just something im doing on my own
This post was edited by TrialErorr on Mar 31 2016 06:42pm