Some of my listigns dont have websites. If they dont I have the default address : http://www.mysite.com/nosite.php added in the DB. This link will go to a page saying the site has no webpage etc. I want to display graphics depending on if the site has a webpage, if the do it will come up with a button saying "Visit Site" if not a button saying "No Website Available"
I have the following code, but it ALWAYS comes out displaying the "yessite.jpg"
I cannot see whats wrong with the logic. no site url is identical to what is stored in the database so it should work![]()
Code:$links_obj->url = $url; if ($url==("http://www.mysite.com/nosite.php")){ $displaysite=("http://www.mysite.com/images/nosite.jpg"); } else { $displaysite=("http://www.mysite.com/images/yessite.jpg"); }
the plan is to use
<a href=<%url%>> <img src=<%displaysite%>border=0></a> to display if a site exists, and make a clickable button.
Im sure this is a simple problem, im new to php. I try for an hour and then i post. thats my rule!!!



