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