Create a PHP file to send an email upon mySQL database results

Hello, could someone please advise on how to create a php file that will connect to my mySQL database, query the ‘date’ and if is 42 days before this date then an email is sent advising the person of this?

Hope this makes sense.

Sponsor our Newsletter | Privacy Policy | Terms of Service