![]() |
Sergey Kornilov admin 12/27/2018 |
This sounds both vague and complicated. It is not clear if you only need to retrieve one number (sales for the same day last year) or something more complicated. If this is a single number only it not clear what you call a "report" then. select * from <TableName> where <DateField> = DATE_SUB(curdate(), INTERVAL 1 YEAR) |
M
|
Mark Kramer 12/30/2018 |
For your email section, look here For inspiration : https://xlinesoft.com/phprunner/docs/email_to_selected_users.htm |
F
|
fpilot author 12/30/2018 |
awesome. thanks. is curdate() in yyyy-mm-dd format? This sounds both vague and complicated. It is not clear if you only need to retrieve one number (sales for the same day last year) or something more complicated. If this is a single number only it not clear what you call a "report" then. Anyway, assuming that you use MySQL, here is a SQL Query that will retrieve data from one year ago: select * from <TableName> where <DateField> = DATE_SUB(curdate(), INTERVAL 1 YEAR) |
F
|
fpilot author 12/30/2018 |
It says "Use custom mailer server settings" under "Email settings". but i dont see this option here, am i at the wrong place? Screen Shot, 2ndly will this change any other emails? 3rdly will it work with html emails.? For your email section, look here For inspiration : https://xlinesoft.com/phprunner/docs/email_to_selected_users.htm |