View Single Post
Old September 6th, 2005, 10:34 AM   #14 (permalink)
Arnie
Member
Verified Customer
 
Join Date: Jun 2005
Posts: 179
Which one of those products has no image assigned to it?

Remove the image for one of those products and then have a look. You'll see that it will pickup the image from the previous product.

You have $catimage nested inside a while statement:
while ( $row = mysql_fetch_row($queryv) ) {

If you stick it inside an if statement, such as "if ( file_exists($checklink) ) {" and there's no image, $catimage retains the value from the first iteration and displays that.

Last edited by Arnie; September 6th, 2005 at 10:39 AM.
Arnie is offline   Reply With Quote