I am using TCPDF and getting content from a MySQL table row which is holding HTML like:
<p><a href="x.html"><img src="http://1/2/3/x.jpg" width="x" height="x"></a></p>
The PDF will launch if I surround the IMG SRC tag with single quotes rather than double but the image is not displaying in the PDF.
THe PDF is being generated from a query in the head of the TCPDF document the query in question is:
$query = "SELECT * FROM solutions WHERE soln_solutionid = $_GET[id]";
$result = mysql_query($query);
$solution = mysql_fetch_array($result);
and the variable is:
$solution['soln_description']
ANy ideas I am banging my head with this one and the TCPDF help and forums are useless!
Thanks
Justin
TCPDF cannot display images which are on remote servers, you will need to download the image and host it locally on the server to have it included in the PDF output.
See this question on saving an image using CURL in PHP, then simply alter to