I have created a MySQL event that executes once a month to archive some tables in my database for my web app.
The problem is that I need a PHP function to manually turn that event on or off, I'm also using Codeigniter for my framework, so if it can be done using Codeigniter's functions, it would be much better.