Jump to content

All Mysql records showing in Firefox but not IE why?


timsharpe

Recommended Posts

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>   ";

 

}

 

?>

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.

 

 

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.