I'm using a loop to display SQL data. All the rows in my db contain some URL for an image src, however there is not actually an image stored at the location (yet) for some the URLs.
How would I default those 'bad links' to a particular image path. I was trying the 'is_null' function but I'm realizing it will not work the way as I am using it because there is in fact a URL coming from the dp - its just a bad link. Is there an alternative method for what I'm trying to do? A way to verify there is actually in image for the URL specified. Here's my dysfunctional code:
if(is_null($smaller_img)){$smaller_img = "http://default image";}