I have a mySQl. I have an inventory database. I would like to send an email to a person when the inventory is equal or less than a preset value.
Is this possible on client side or server side? using PHP?
Any examples?
Erik
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To test via cron (or a scheduled task), setup a script like this to run every few minutes. If you wanted to be clever, store the notification threshold in the database along with the product. That would enable you to notify multiple people for multiple products in a loop.
To run this every ten minutes via cron: