Hi,
I am wanting to use a cron job to execute a php script to automatically query a MYSQL database then email the result to a user(s) in a DB. I am suing a LAMP stack. This is for a HR management system which does not have all the functions i need (orange HRM open source if you have heard of it) I have several of these scripts to set up but perhaps the easiest one woulde be
querying a databse to find when a emploees details were last updated and if it has not been in the last 60 days then they are sent an email
The main issue is i have never written a script like this before and after looking everywhere on the web cant find a good solution. Can someone please help?
The DB stucture would be something like....
DB name - hr_mysql
Table - hs_hr_employee
fields - emp_lastname
- emp_firstname
- emp_work_email
Table - hs_hr_users
fields - date_modified
Thanks for anyones help
Start Free Trial