Guest Posted March 25, 2008 Share Posted March 25, 2008 i have a script that displays a image if a folder on my server is empty or has a file it it: the code i use is: <?php $dir = 'upload/18_00'; echo (count(glob("$dir/*")) === 0) ?"<a href=upload/1800.php><img src=img/1800.png":"<img src=img/booked.png"; ?> the problem is a link box appear around it when i dont want it to. is this sumthing i need to specify in my css? :-\ Link to comment https://forums.phpfreaks.com/topic/97868-help-am-i-being-dumb/ Share on other sites More sharing options...
cooldude832 Posted March 25, 2008 Share Posted March 25, 2008 first you don't quote the image name or close the brace secondly you put a link in there so of course its gonna be a link the blue "box" you speak of is the default rendering of a non defined border <a href=""><img src=\"\" border=\"0\" /></a> will remove border Link to comment https://forums.phpfreaks.com/topic/97868-help-am-i-being-dumb/#findComment-500779 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.