MySQL Forums
Forum List  »  PHP

Re: Daily email of table data
Posted by: Peter Brawley
Date: March 24, 2018 11:34AM

Write the aggregating query, eg if the column rental_date is in column rentals ...

select ...
from rentals
join ...
where rentals.rental_date=curdate();

Write a PHP script that runs that query, retrieves all result rows, and emails the result to the desired email address.

Once it's debugged and proved to be corrct, write a cron script to run it daily at the desired time.

Options: ReplyQuote


Subject
Written By
Posted
March 24, 2018 10:01AM
Re: Daily email of table data
March 24, 2018 11:34AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.