473,412 Members | 2,277 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,412 software developers and data experts.

show picture in IE browser correctly but in firefox no

oranoos3000
107 100+
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
1 2544
dlite922
1,584 Expert 1GB
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

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

Similar topics

22
by: Olaf Noehring | last post by:
Hi does anyone of you know a save method on PHP to relyably, maybe using other programs create scrennshots (thumbnails) of websites? I am the administrator of the open source project (at...
3
by: Don | last post by:
Hi, I try to get a simple applet working, the class-file does load, but the image doesn't appear;( An error doesn't appear. The view is and stays 'grey' What I want: Automatic refresh of a...
7
by: 7mary4 | last post by:
I am working on a kiosk for a museum, we will be using firefox as the browser, with windows, and a touch screen. We'd like to create a slide show of a small portfolio when the visitors click...
2
by: Lau Lei Cheong | last post by:
Hello, Actually, I'm wondering if there's anything of the sort avaliable in the wild - a developer oriented W3C browser. It's kinda W3C's online validation service, just that it runs on locahost...
11
by: jimstruckster | last post by:
I have a table with 10 rows, I want all rows except for the first to be hidden when the page first opens up. If the user puts a value in a text box in the first row then I want the second row to...
7
by: Klaus P. Lewohn | last post by:
I've integrate some images in a website like "<p style="text-align:justify"> <img src="../images/haus1.jpg" border="0" alt="Wir kümmern uns drum." style="float:right; margin-left:20px;...
16
by: Edward | last post by:
Hi All, I am having huge problems with a very simple dotnet framework web page (www.gbab.net/ztest3.aspx) , it does NOT render correctly under Apple's Safari. The DIV's do not align amd float as...
16
by: Eric | last post by:
I have a user of a web application written in Java/JSP that is unable to login to the site simply because certain links on the page do not run when they are clicked. Other popups using Javascript...
1
oranoos3000
by: oranoos3000 | last post by:
hi would you please help me i have a online shopping center that i show pictures of the my product in home page. in the InterExplorer pictures is shown correctly but in Firefox browser is shown...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.