image problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
daan
Forum Commoner
Posts: 25
Joined: Wed Nov 16, 2005 10:32 am

image problem

Post by daan »

i want an image to be desplayed when a certain condition is 'yes'
now he displays a text but i want it to be an image

if($a1[Condition] == 'y')
{
$ShowInfo .= "condition<br>\n";


the text 'condition' should be an icon that is displayed

thanx
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post by s.dot »

Code: Select all

$ShowInfo .= "<img src=\"imageyouwanttodisplayifconditionismet.gif\" alt=\"Image\"><br>\n";
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
daan
Forum Commoner
Posts: 25
Joined: Wed Nov 16, 2005 10:32 am

Post by daan »

thanx :D
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Post by josh »

scrotaye wrote:imageyouwanttodisplayifconditionismet.gif
yikes, that's the name of your image?
Post Reply