hi,
i am trying to figure out if this is possible.
i want to include an image on a page that has a list of ads, but not on the page when you view the details of the ad.
the main page has a var of ID and the details of the ad have vars of ID and AD. my thinking is that if $ad is blank, i want to include the image, but if it is posted, then the image doesnt display. the page that displays the details is the same page that displays the list of ads.
here is what i am trying now, but am only ablr to get the image to display on all the id supplied pages.
if ($ad <= "0")
if ($id == "17"){
print "<center><img src=\"http://mysite.gif\"></center><br>\n";
} elseif ($id == "18"){
print "<center><img src=\"http://mysite.gif\"></center><br>\n";
} elseif ($id == "19"){
print "<center><img src=\"http://mysite.gif\"></center><br>\n";
} elseif ($id == "20"){
print "<center><img src=\"http://mysite.gif\"></center><br>\n";
} elseif ($id == "1"){
print "<center><img src=\"http://mysite.gif\"></center><br>\n";
}
else
echo ".";
also, if there is a way to just include all the $id var in the same statement that would be great.
thanks