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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

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.