chrismartz
11-08-2006, 10:02 AM
We have a report we are trying to write that pulls a picture from a url that is given with a variable as the id of the photo. The url would look like (http://someplace.com/static/stu_id/photo).
The problem is that if the stu_id doesnt' have a photo it fails because the actual photo is at http://someplace.com/static/images/default.jpg
How can we do an if statement that if we get a 404 error from the first string that it will use http://someplace.com/static/images/default.jpg?
The problem is that if the stu_id doesnt' have a photo it fails because the actual photo is at http://someplace.com/static/images/default.jpg
How can we do an if statement that if we get a 404 error from the first string that it will use http://someplace.com/static/images/default.jpg?