|
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?
|