473,406 Members | 2,378 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,406 software developers and data experts.

Problem with picture

42
Hey everyone.

I have a strange problem with PHP site. This only happens in IE 6.
So, when user logs in there is a placeholder for user's own picture. Also there is a form where this picture can be loaded. The problem is that the picture won't show in main page, but shows in the loading form.

The main page works with following code:
[HTML]
<div style="position:absolute;left:0;top:30px;height:13 0px;width:130px;background-image:url('afbeeldingen/[[profielafbeelding]]');background-position:center;" id="profielafbeelding"></div>
<div style="position:absolute;left:0;top:0;height:200px ;width:188px"><img src="[[url]]images/photoframe.png" width="188" height="200" /></div> [/HTML]

Which is assigned in PHP with following code:

[PHP]$index->assign("profielafbeelding",$user->afbeelding);[/PHP]

And eventually with following code the picture is fetched from db:

[PHP]
function get_afbeelding() {
$this->classes();
$this->afbeelding = false;
$this->SQL->query("select * from tblAfbeeldingen where uid='".$this->uid."'");
if (sizeof($tmp = $this->SQL->result(true,true))) $this->afbeelding = $tmp['afbeelding'];
}

[/PHP]

The form works with following code:

[HTML]<p align="center" class="tekst"><img class="profile" src="afbeeldingen/[[afbeelding]]" style="display:[[img]]" id="afbeelding"/>[/HTML]

Assigning:

[PHP]
$page->assign("afbeelding",$user->afbeelding); [/PHP]

And the database fetching is the same.

What could cause this not to work in IE6? Any suggestions?
Sep 9 '08 #1
5 1714
Atli
5,058 Expert 4TB
Hi.

My guess would be that IE doesn't support some (any) of the HTML/CSS you are using. (It has a nasty habit of doing that)

To be honest, I wouldn't bother with it. If people insist on using IE6 (or IE in general) they deserve to see broken pages...

But, I'm still going to move this over to the HTML/CSS forum. Maybe somebody there can spot the problem.
Sep 9 '08 #2
pbmods
5,821 Expert 4TB
Heya, Zamuel.

What's the final HTML look like? Are those [[var]] tokens getting replaced by anything, or are they remaining in the end result?
Sep 9 '08 #3
zamuel
42
Hello, I have been busy for a while. Yes, the problem was solved accidentally. I had some other pictures (PBGs) on the site and because of that I had to make a fix not to mess up the transparency. Fortunately this fixed also the problem with the main picture.

Thanks for everyone.
Sep 16 '08 #4
zamuel
42
I mean 'PNGs' on the last reply.
Sep 16 '08 #5
pbmods
5,821 Expert 4TB
Glad to hear you got it working! Thanks for posting your solution.

Good luck with your project, and if you run into any trouble, post back anytime (:
Sep 16 '08 #6

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

Similar topics

3
by: Trevor Fairchild | last post by:
I am making a program that categorizes pictures. The picture paths are stored in an Access Database, vb6 connects using adodc controls. This program works specifically with .jpg files. It will be...
10
by: Chris Coho, Jr. | last post by:
Ok, I'll explain the whole problem because there may be several ways to solve this and hopefully someone knows one. What I'm doing is creating a specialty template editor, similar to say a corel...
5
by: Juho Saarikko | last post by:
I made a Python script which takes Usenet message bodies from a database, decodes uuencoded contents and inserts them as Large Object into a PostGreSQL database. However, it appears that the to...
5
by: Joan | last post by:
I am creating a word document from an asp page. I have no problems actaully creating the document and creating some tables that have data in them. I am using Response.ContentType =...
6
by: Nutshell | last post by:
Hi, I created a web page which contains table. I use table cells to display a picture using <img src>. The problem is that some pictures are not being fully displayed, only a quarter of the left...
2
by: Lyn | last post by:
I am trying to embed a picture into a Bound Object Frame (Me!Photograph) with the following code which is based on MS article http://support.microsoft.com/?id=158941: strPathname =...
0
by: Lyn | last post by:
I am having a frustrating time trying to do a simple insert of a BMP picture into a Bound Object Frame using both VBA and the Insert | Object... dialog. I had a separate post thread going on this...
3
by: Simon | last post by:
Hi I have a problem I am making a business website and I have to put some small pictures on the right hand side and put text in the center of the page like this: Pic here text here Pic here ...
4
by: NASAdude | last post by:
I'm working on distributing a database using VS Tools for Office, and am having trouble with linked images on forms/reports. The image objects have a default path\file set on the .Picture property,...
6
by: Jeff | last post by:
Hey (and thank you for reading my post) In visual web developer 2005 express edition I've created a simple website project.. At this website I want users who register to be able to upload a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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
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...

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.