send output of mysql query to email within same script
I have some code in a php script which produces a table of results. Whats the best and simplest way to send this via email within the same php script?
I dont really want to pipe the output to a text file then use 'mail' from within the system. Code:
// Display Report title |
Create a variable called mailtxt and use the .= to keep appending the results. Then use the built in mail function for email. That should get what you want.
Code:
// Display Report title |
thanks mate. works perfectly.
|
All times are GMT -5. The time now is 02:56 PM. |