Hi guys,

I have a link in my php page that looks like the following:

<?php
echo "<a href=hotel-map.php?id=$pid>Map Details</a>"; 
		?>

Although instead of the "map details" text I want an image there...

can someone tell me how I'd do this please? I can't seem to find anything around about how to do this....

thanks in advance :)

<?php
echo "<a href=hotel-map.php?id=$pid><img src='myimage.jpg' width='100px' height='75px'></a>";
?>

commented: thanks for the help sir! +1

ah thanks for the help, I thought it was my syntax letting me down, I was right :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.