Reputation: 1706
I have 6 relation table "books, book_details, book_confirmations, book_completions, member_bookings, and book_participants". I store data into 6 table with confirmation_status = 0;.. I want to delete all of my booking with confirmation status = 0, if the created_at has already passed 1 day.. but I want to delete them automaticly. So, what should I do in my controller especially function __construct()..
Upvotes: 0
Views: 72
Reputation: 723
you should use Mysql events.
its easier with phpmyadmin. just check if event scheduler is running.
Upvotes: 1