$path = '<img src="/image/'.(($var) ? 'a' : 'b').'.jpg">';
even shorter :)

- Aleksander

Mark Abrams wrote:
if (var) {$path='/image/a.jpg';}else{$path='/image/b.jpg';}

?>

<div class="adThumb"><img src=" <? echo ' . $row['image'] '" ' ?>  >  </div>


""Stephen"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
I'm kind of trying to do this quickly. Can anyone give me some PHP code that will let me link to a different image if $veriable = blah blah blah. I need it for 4 different options.


--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to