Can you use isset() with image link
Posted: Thu Jun 26, 2003 9:06 pm
G'day,
I've setup an admin panel to create questions and store in MySql no problem. The quiz script works fine, but now when I wanted to add images with certain questions that require an image.
I was able to create the DB field "image" and was able to make the admin panel store for example, logo.gif. Now all I have to do is make php echo that as a link to where the image is and it worked fine too.
The problem: It seems that every presented question now has an image associated with it, a brocken image link that, but I only wanted questions that I specified an image for them to have an image not all
I looked in the function list on php.net and I found that I may not be able to use if isset. Thought about file_exists, but not sure about it...
Help to steer in the right direction would be appreciated.
Cheers,
I've setup an admin panel to create questions and store in MySql no problem. The quiz script works fine, but now when I wanted to add images with certain questions that require an image.
I was able to create the DB field "image" and was able to make the admin panel store for example, logo.gif. Now all I have to do is make php echo that as a link to where the image is and it worked fine too.
The problem: It seems that every presented question now has an image associated with it, a brocken image link that, but I only wanted questions that I specified an image for them to have an image not all
I looked in the function list on php.net and I found that I may not be able to use if isset. Thought about file_exists, but not sure about it...
Help to steer in the right direction would be appreciated.
Cheers,