Question
PHP IF/ELSE
I have six thumbnails on a page and a large image. On
clicking the thumbnail the thumbnail reloads the page with a URL
variable 'photo' which then becomes the enlarged image source. All
of that works perfectly at the moment.
However, the first time the page is loaded the URL variable 'photo' is not present so I'm trying to use IF/ELSE to automatically make it show 'photo 1' if URL variable 'photo' is not present.
Unfortunately I just can't make it work. The image source returns blank when no URL variable is present instead of defaulting to $row_rs_properties['photo1']
Can anyone suggest why this code doesn't work?
Dave
However, the first time the page is loaded the URL variable 'photo' is not present so I'm trying to use IF/ELSE to automatically make it show 'photo 1' if URL variable 'photo' is not present.
Unfortunately I just can't make it work. The image source returns blank when no URL variable is present instead of defaulting to $row_rs_properties['photo1']
Can anyone suggest why this code doesn't work?
Dave
