The image path field contains the following for product CS800:
images/dist_images2/cs800.jpg
For every product, I have the image path pointing to the item_number.jpg
I run into trouble when there is no .jpg for the product. I don't want to manually point the image path to a nophoto.jpg because then I'll have to keep up with it. I'd like the image path to point to the item_number.jpg and have PHP check to see if it is there. If the item_number.jpg isn't there, then have PHP point to the nophoto.jpg (which has the message "no photo for this item").
I guess the best thing would be to set the database up to point to nophoto.jpg as a default
Thank you Foamy and Mahers for your help, it's much appreciated!