cristo33 Posted December 26, 2008 Share Posted December 26, 2008 I'm not sure whether this is the right forum, because I'm not really sure what the problem is but I hope someone can help! Basically this code displays a picture in Firefox and Safari, but when I've just checked it on IE 7 now, it doesn't display anything (not even one of those little crossed boxes). <?php $query = "select * from pics order by rand() limit 1"; $result = mysql_query($query); $obj=mysql_fetch_object($result); $url=$obj->url; $id=$obj->id; ?> <img src="<?php print $url ?>" width="" height="" /> The images that it is supposed to be choosing from are all .jpg I'm not sure if it's a PHP problem but thanks in advance if anyone can help! Link to comment https://forums.phpfreaks.com/topic/138501-solved-image-shows-up-in-firefox-safari-but-not-ie/ Share on other sites More sharing options...
cristo33 Posted December 26, 2008 Author Share Posted December 26, 2008 Ooops just realised and changed <img src="<? print $url ?>" width="" height="" /> to <img src="<? print $url ?>" /> It's working now. Link to comment https://forums.phpfreaks.com/topic/138501-solved-image-shows-up-in-firefox-safari-but-not-ie/#findComment-724180 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.