Can someone tell me whats wrong with this?
Before reading, just know that I created the queries for fldImg and fldImageName. I just want to know why my images from the database arent being displayed with the code bellow, as everything else the pagination script works.
====================
show_image(stripslashes($row['fldImg']),stripslashes($row['fldImageName']));
}
echo ' '.$number_of_records;
function show_image($image_name, $alt)
{
if (file_exists("website.ca/images/'$image_name'"))
{
$dim_img = getimagesize('website.ca/images/'.$image_name);
echo '<img src="website.ca/images/'.$image_name.'" alt = '.$alt.' border=0 align="bottom"';
echo 'width = '. $dim_img[0] .' height = ' .$dim_img[1] . ' />';
}
else
echo 'Add your image here!';
}
====================
Basically I'm getting the image names from a column in the database and in each column it has 'image.jpg' and connecting it with the img src script from HTML so I can display the images from the mysql database. It has something to do with '$image_name' Im assuming.
No Images are displaying and I can't find the error. Doesn't seem like theirs anything wrong or I am just blind.
Thanks in advance!



