473,320 Members | 1,977 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,320 software developers and data experts.

problem with browser

heelo friens. i have a problem,actually i saved the path of an image file in a database,when i fetch it and try to display in a table,its work fine with I.E but image is not shown in mozilla and opera,pls help me its urgent.
the code is:
Expand|Select|Wrap|Line Numbers
  1. <table>
  2. <tr>
  3. <td width="37%" rowspan="4" align="center" valign="middle"><img name="customerimage"  src="<? echo $customerimage; ?>" id="customerimage" width="86" height="100" ></td>
  4. </tr>
  5. <table>
  6. <? echo $customerimage; ?> 
  7.  
i fetch the path of image file in a variable $customerimage from database.
Aug 18 '07 #1
1 1130
Atli
5,058 Expert 4TB
Hi.

I can't see any major errors there. There are a couple of things you could try tho.

First, all tags should be closed, either like this '<tag></tag>' or like this '<tag />'. So try closing the <img> tag, like so:
Expand|Select|Wrap|Line Numbers
  1. <img src="myimg.jpg" alt="" />
  2.  
Second, Try to avoid using properties in the HTML tags them selfs, like the 'width' or 'height' properties. Instead either use the 'style' property and set the width and height there. Or create a CSS document with the styles.
Try this:
Expand|Select|Wrap|Line Numbers
  1. <img src="myimg.jpg" alt="" style="width: 100px; height: 75px;" />
  2.  
IE seems to have a greater tolerance for minor "errors" like these than Mozilla or Opera so I would avoid using IE for testing code (tho I would still make sure it works on IE)
Aug 18 '07 #2

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

Similar topics

9
by: Bartosz Wegrzyn | last post by:
I need help with sessions. I createt set of web site for nav with authorization. first I go into main.php which looks like this: <?php //common functions include_once '../login/common.php';...
5
by: fripper | last post by:
I posted this problem a couple of days ago but felt I might have better luck re-stating the problem. Apparently I messed up IIS (v. 5) somehow because I am suddenly unable to load web forms! A...
12
by: Jeff S | last post by:
In a VB.NET code behind module, I build a string for a link that points to a JavaScript function. The two lines of code below show what is relevant. PopupLink = "javascript:PopUpWindow(" &...
7
by: Jacob | last post by:
Has anybody else encountered a problem when running your asp.net applications off your localhost and having broken image links? The weird thing is, the links aren't really broken. The reference...
2
by: Joseph Geretz | last post by:
I'm having a credentialing problem in my web application. Actually, I don't think this is an IIS security issue, since I'm able to access the page I'm requesting. However, the executing page itself...
10
by: Don Munroe | last post by:
This one has me stumped. I have three web applications running on two different servers. The first that works fine is hosted by a .Net hosting company. Everyone that uses it has no problems...
8
by: nick | last post by:
I have a problem and I've been using a cheezy work around and was wondering if anyone else out there has a better solution. The problem: Let's say I have a web application appA. Locally, I set...
11
by: Russ | last post by:
My web app writes some binary data to a file at the client site via Response.Write and Response.BinaryWrite. This action is accomplished in response to a button click, with C# code behind as...
2
by: Nitin | last post by:
Hi, I login to my asp.net web application from the same client machine twice, using different credentials. Both separate instances work fine, independant of each other. However, when I logout...
34
by: Simon Wigzell | last post by:
document...focus() will scroll the form to move the specified text field into view on everything I have tried it with except Safari on the MAC. The form doesn't move. Any work around? Thanks.
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.