PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I have a page on my site that sends a mail to my client containing a copy of their statement in the body of the mail. The statement is a PHP page rendering from my database and I used iframe till now. It works fine as long as they click "Load Pictures" in their email client. Problem is that anti-virus programs don't like this so I need to change? I am playing with the code below now but it shows the code of the page in the body of the mail instead of a rendered version of the page.
You either have <? in statement.php instead of <?php, or you are not accessing it by URL.
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
Actually, I have experimented by using a plain .htm file from somewhere in my site in the place of statement.php and same thing? Displays the page code instead of the page.
I am on a PHP server and my page 'statement.php renders perfectly on my site. I have .php and .htm files in my site. I used the code shown to call or open the file and input what the code gets into the body of the mail that the page sends. This did not matter whether I was using statement.php or conditions.htm.
The problem is that the script shown delivers the source code of the page in the body of the mail sent. ie. the recipient of the mail views the source code of the page I am trying to show in the body of the mail.
The code below is what I used now but it still gives me the source code of the page in the email body? I am getting desperate, please, any idea's welcome.
Thanks
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.