Jump to content

Why is the following code printing in FireFox but not in II?


imimin

Recommended Posts

Interesting...when I run the following code, the links to the buttons (for the <a> tags below) show up in FireFox , but not in IE:

 

<?php

if(!isset($_GET['id'])){
   die("Category isn't specified");
}


/* Enable displaying of errors */
error_reporting(E_ALL);
ini_set('display_errors', 'On');

$id = mysql_real_escape_string($_GET['id']);

$get_items = "SELECT * FROM poj_products WHERE id='$id'";
$get_items = mysql_query($get_items);
if($get_items){
   $item_row = mysql_fetch_assoc($get_items);
   extract($item_row);

echo <<<HTML
<a href="http://www.patternsofjoy.com/poj_order_form.php?id=$id">
   <img src="/images/order_now.jpg" style="border:none">
</a>

<a href="http://www.patternsofjoy.com/order_more.php?id=$id">
   <img src="/images/change_style.jpg" style="border:none">
</a>
HTML;
   }else{
   die("Unable to connect to database.".mysql_error());
}

?>

  I am sure this may be related to my problem?  The funny thing is they were working lost night in both browsers?

 

BTW...no errors.

OK...

I have this figured out...

 

I used Corel PhotoPaint to create the images and saved them with CMYK color encoding (instead of RGB) and Firefox/IE choke on such files. In PhotoPaint (or Adobe PhotoPaint or whatever you use), you can convert the JPGs to RGB colorspace, or you can select “Save For Web…” to make the file valid for common browsers.

You know - you shouldn't be using jpg in the first place. The image you posted in your first post could def. be a png. Png take up less room and are super high quality. Of course, not all images work under png. Real photos would gobble up mb's of space in png format.

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.