imimin Posted July 13, 2009 Share Posted July 13, 2009 Why is the following printing in FireFox but not in II? <TD valign=top> <IMG SRC="http://www.patternsofjoy.com/images/wow.jpg"> </TD> ??????????????????????? Quote Link to comment https://forums.phpfreaks.com/topic/165839-why-is-the-following-code-printing-in-firefox-but-not-in-ii/ Share on other sites More sharing options...
imimin Posted July 13, 2009 Author Share Posted July 13, 2009 I know this is a php board, but this is the strangest thing I have seen! The syntax looks right, doesn't it? Quote Link to comment https://forums.phpfreaks.com/topic/165839-why-is-the-following-code-printing-in-firefox-but-not-in-ii/#findComment-874761 Share on other sites More sharing options...
J.Daniels Posted July 13, 2009 Share Posted July 13, 2009 top may need to be in quotes: <TD valign="top"> Quote Link to comment https://forums.phpfreaks.com/topic/165839-why-is-the-following-code-printing-in-firefox-but-not-in-ii/#findComment-874822 Share on other sites More sharing options...
haku Posted July 13, 2009 Share Posted July 13, 2009 Are you using an XHTML doctype? If so, you need to make your tags and attributes in small characters, though that should not prevent it from rendering. Quote Link to comment https://forums.phpfreaks.com/topic/165839-why-is-the-following-code-printing-in-firefox-but-not-in-ii/#findComment-874886 Share on other sites More sharing options...
imimin Posted July 14, 2009 Author Share Posted July 14, 2009 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. Quote Link to comment https://forums.phpfreaks.com/topic/165839-why-is-the-following-code-printing-in-firefox-but-not-in-ii/#findComment-874962 Share on other sites More sharing options...
imimin Posted July 14, 2009 Author Share Posted July 14, 2009 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. Quote Link to comment https://forums.phpfreaks.com/topic/165839-why-is-the-following-code-printing-in-firefox-but-not-in-ii/#findComment-874983 Share on other sites More sharing options...
TheFilmGod Posted July 16, 2009 Share Posted July 16, 2009 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. Quote Link to comment https://forums.phpfreaks.com/topic/165839-why-is-the-following-code-printing-in-firefox-but-not-in-ii/#findComment-876215 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.