Forums

PHP

This topic is locked

If else statment with images

Posted 17 Jan 2006 19:04:53
1
has voted
17 Jan 2006 19:04:53 Jon Ochoa posted:
Does anyone know how to do an if else statment using images.
For example,
I have a not available icon that I want to display if my default (represented by "n/a" is in the database field.
If something else is there which would be a link, I would like it to display another icon and have that link to where my database field is pointing.

Any help would be greatly appreciated.

Reply to this topic