I have a booking system where I want clients to be notified by e-mail 48 hours before their scheduled appointments.
All client data is kept in a MySql database.
How can I make a script that scans the database every 15 minutes and notifies the clients?