timsharpe Posted November 25, 2011 Share Posted November 25, 2011 I am using the below script to show images in a database in firefox all images show in IE they dont why? <?php include "dbconnect.php"; $result=mysql_query("select * from gallery", $db); if(!mysql_num_rows($result)) { print "No Photos Posted! Please stay tuned for our photos!"; echo mysql_error(); } while ($row = mysql_fetch_array($result)) { extract($row); $image = $image; $description = stripslashes($description); print "<a href=\"gallery/$image\" rel=\"lightbox[roadtrip]\" title=\"$description\" width:500px height:400px><img src=\"gallery/$image\" width=200 height=200 class=frame border=0></a> "; } ?> Quote Link to comment Share on other sites More sharing options...
Pikachu2000 Posted November 25, 2011 Share Posted November 25, 2011 Look at the markup in View ---> Source and see if it looks right or not. Quote Link to comment Share on other sites More sharing options...
Dazman2011 Posted November 29, 2011 Share Posted November 29, 2011 Could it be the width and height specified on the <a> tag? That isn't correct syntax for HTML, looks as if you've forgotten to put the style="" attribute in. Or define them as you have done on the <img> tag without the 'px'. Also, $image = $image? What's that about? I suspect this is a CSS / HTML formatting issue rather than anything to do with the database. Quote Link to comment Share on other sites More sharing options...
haku Posted December 3, 2011 Share Posted December 3, 2011 I'm pretty sure you are correct. It's incorrectly formatted HTML, and IE probably doesn't like it. Quote Link to comment Share on other sites More sharing options...
Stiver112 Posted December 10, 2011 Share Posted December 10, 2011 try closing the image tag like this /> instead >... not if it will do any difference but its worth the try Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.