Can you use isset() with image link

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
Testor
Forum Newbie
Posts: 12
Joined: Tue Jul 16, 2002 11:26 am

Can you use isset() with image link

Post by Testor »

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 :cry:

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,
Post Reply