For Programmers: Free Programming Magazines  


Home > Archive > PHP on Windows > August 2007 > Code sample - Small Help









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Code sample - Small Help
Mark Abrams

2007-08-01, 7:02 pm



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

?>

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


""Stephen"" <therealzero@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.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com