By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,223 Members | 1,371 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,223 IT Pros & Developers. It's quick & easy.

show picture in IE browser correctly but in firefox no

oranoos3000
100+
P: 107
hi
i make a shopping online that in home page i show my product picture's to user
(information product's such as address location of picture and name and the other properties is kept in database my programming language is php and my database is mysql)
my problem is that my product pictures in Internet Explorer is shown correctly
but in firefox browser instead of picture text is writen in alt attribute is shown
for showing picture i fetch product's properties from database and show they on the page.
a part of my code is as follows
Expand|Select|Wrap|Line Numbers
  1. $id=$_SESSION['sid'][$i];//id product code's in db
  2. $query1="select id_phone,mark,seri,photo,price,guaranty from $table_name
  3.  where id_phone='$id'";
  4.  ++$i;
  5. $result1=mysql_query($query1,$cxn)or die('could not execute query for fetch properties ');
  6. while($rows1=mysql_fetch_array($result1))
  7. {#41
  8. $aa=(int)$rows1['id_phone'];
  9. echo "<a href=\"show_properties.php?aa=$aa\" class='a1'>";;
  10. echo $value_name_phone[$rows1['mark']].' '.$rows1['seri'];
  11. echo  "<br>";
  12. echo "<img src={$rows1['photo']}  border='0' width=90 height=120 alt=\"show product's properties\">";
  13. echo "<br>";
  14. echo "<a href=\".\order_material.php?id=$id\">";//this line go user to page of showing product's properties
$rows1['photo'] is path picture that is kept on the database and the same ..\uploaded_file\pic_6.gif
thanks
Sep 1 '09 #1
Share this Question
Share on Google+
1 Reply


dlite922
Expert 100+
P: 1,584
The browsers don't execute the PHP. Rather they get the same HTML code from the server, it's just how they're interpreted.

You may need to post your HTML output, grab it, and isolate the problem in a .html file.

Firefox behavior is almost always the correct one. IE has a fluke by chance that shows the image.

example: Does your Photo name have a space in it? look at the source to find out.




Dan
Sep 1 '09 #2

Post your reply

Sign in to post your reply or Sign up for a free account.