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

 

}

 

?>

Link to comment
Share on other sites

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.

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.