Jump to content

[SOLVED] Image shows up in Firefox & Safari, but not IE.


cristo33

Recommended Posts

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!

 

 

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.