473,566 Members | 2,763 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem with picture

42 New Member
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;heig ht:130px;width: 130px;backgroun d-image:url('afbe eldingen/[[profielafbeeldi ng]]');background-position:center ;" id="profielafbe elding"></div>
<div style="position :absolute;left: 0;top:0;height: 200px;width:188 px"><img src="[[url]]images/photoframe.png" width="188" height="200" /></div> [/HTML]

Which is assigned in PHP with following code:

[PHP]$index->assign("profie lafbeelding",$u ser->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("selec t * from tblAfbeeldingen where uid='".$this->uid."'");
if (sizeof($tmp = $this->SQL->result(true,tr ue))) $this->afbeelding = $tmp['afbeelding'];
}

[/PHP]

The form works with following code:

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

Assigning:

[PHP]
$page->assign("afbeel ding",$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 1734
Atli
5,058 Recognized Expert Expert
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 Recognized Expert Expert
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 New Member
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 New Member
I mean 'PNGs' on the last reply.
Sep 16 '08 #5
pbmods
5,821 Recognized Expert Expert
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
13868
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 used by people categorizing thousands of images. The problem I have is that both the picture control, and the image control seem unable to open...
10
9482
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 draw (but for specific uses). What I need to be able to do is import graphics and text and then move them around the background until they are where...
5
2714
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 last few bytes of uudecoded data are always mangled. Take a look of this hexdump output: Originals (decoded with Pan, each line is from a different...
5
13278
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 = "application/vnd.ms-word" to create the actual document. My problem is that I want to place a picture (which resides on the server) into the word document as well....
6
1794
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 side of the picutre is being dislplayed inside the table cell. I have already checked if this is perhaps the web server problem, but I determinated...
2
8907
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 = "C:\photo.bmp" Me!Photograph.Class = "Paint.Picture" Me!Photograph.OLETypeAllowed = acOLEEmbedded Me!Photograph.SourceDoc = strPathname Me!Photograph.Action =...
0
2331
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 and closed it off when I thought I had resolved the problem, but now I am back at square one. So I thought I would start afresh with a new post. ...
3
1270
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 text here Pic here text here Plzz help!!
4
12824
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, which becomes invalid when the user installs the database (ie: c:\devpath\ becomes c:\program files\mydbapp, but the .Picture property still...
6
8106
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 picture of themselves to their profile... I admit that I'm a newbie... but this is how I understand this:
0
7584
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7888
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7644
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7951
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5484
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5213
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3643
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2083
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1201
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.