I am trying to create a pdf from data stored in mysql database. When trying to create the header I cannot get the image from mysql to display.
The image does exist and I can see it if I type the url directly. If I echo $row_search_results['main_
it shows me the correct filename IMG_0791.JPG
But I get the following error if I just try and create the pdf.
Warning: getimagesize() [function.getimagesize]: Filename cannot be empty in /home/survey/public_html/p
p on line 1202
FPDF error: Missing or incorrect image file:
If I hard code the image it works fine.
$logo = "property_images/".$row_search_results['main_photo'];
class PDF extends FPDF