Jump to content

[SOLVED] image link not showing up


jiggens

Recommended Posts

<?php

$window = "'http://homes.pacificscene.com/popup.php?type=maps&ID=" . $row[0] . "','popUp','width=825,height=625,scrollbars=yes'";
			if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/images/browse/maps/" . $ID . ".jpg")) {
			    print '<p><a href="javascript:;"><img border="0" src="http://homes.pacificscene.com/images/browse/maps/' . $row[0] . '.jpg" onclick="MM_openBrWindow(' . $window . ')" />View Map</a></p>';
			}?>

 

 

Its showing up as a image instead of a link, am i missing something?

 

 

http://homes.pacificscene.com/browse/community.php?ID=43

 

Link to comment
https://forums.phpfreaks.com/topic/71587-solved-image-link-not-showing-up/
Share on other sites

the link is there, its just off to the side

 

 

if you don't want the map to show untillyou click the link, get rid of teh img tag.

<?php

$window = "'http://homes.pacificscene.com/popup.php?type=maps&ID=" . $row[0] . "','popUp','width=825,height=625,scrollbars=yes'";
			if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/images/browse/maps/" . $ID . ".jpg")) {
			    print '<p><a href="javascript onclick="MM_openBrWindow(' . $window . ')" />View Map</a></p>';
			}?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.