Re: Code sample - Small Help

From: Date: Wed, 01 Aug 2007 14:40:39 +0000
Subject: Re: Code sample - Small Help
References: 1 2  Groups: php.windows 
Request: Send a blank email to php-windows+get-28314@lists.php.net to get a copy of this message
$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"" <therealzerocool@gmail.com> wrote in message news:26.75.23196.36EEFA64@pb1.pair.com...
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.
    


« previous php.windows (#28314) next »