I did not get any errors on running the script in sending mail in HTML format and getting the corret output to the screen. But the email received has nothing in it, the written text file also has nothing in it. Though, these 3 outputs use the same function SAVE_ME( ... )
I wonder why when I put function in the format like this in the
mail ($to,$subject,SAVE_ME (...)) or fwrite ($fp,SAVE_ME (...)), it appears that the program outputs the result to the screen correctly by looping through the database. However, there is nothing in the mail content and the file.
I guess that my problem is probably something call Variable Function which the manual says that it does not work with "print", "require", etc and it needs a wrapper to make it.
Does anyone know how to write a wrapper to make my function outputs HTML with data into Email and File, not just the screen?
Any possible suggestion will be appreciated. I need to finish this work by 31March. Thank you.