Jump to content

Output problem in IE


Ivan Ivković

Recommended Posts

if(isset($pics)){
while($fetch = $pics -> fetch_array()){
	echo '<li><a id=\'' . $fetch['pic_id'] . '\' href=\'/content/pics/'.  $fetch['user_id'] . $fetch['src'] . '\'><img title="Locomotives Roundhouse" alt="Steam locomotives of the Chicago & North Western Railway." src=\'/thumb.php?pic=content/pics/'.  $fetch['user_id'] . $fetch['src'] . '&w=90&h=60\'/></a></li>';
}
}

 

Output in Chrome:

 

<li>
<a id='84' href='/content/pics/9/133596199311823.jpg'>
	<img title="Locomotives Roundhouse" alt="Steam locomotives of the Chicago & North Western Railway." src='/thumb.php?pic=content/pics/9/133596199311823.jpg&w=90&h=60'/>
</a>
</li>

 

Output in IE:

 

<li>
<a href='/content/pics/9/133596199311823.jpg'>
	<img title="Locomotives Roundhouse" alt="Steam locomotives of the Chicago & North Western Railway." src='/thumb.php?pic=content/pics/9/133596199311823.jpg&w=90&h=60'>
</a>
</li>

 

ID attribute is missing and the SRC closing part of the tag is missing! I've tried deleting cookies, history everything. :( Why is this happening? :S

I need that ID.

Link to comment
https://forums.phpfreaks.com/topic/263316-output-problem-in-ie/
Share on other sites

This may seem like a silly question, but are you pointing Chrome and Internet Explorer to the same location? Maybe one is looking at the "live" version while the other is pointing to a development server?

 

The reason I ask is that the image tag is also slightly different. Chrome seems to be outputting as XHTML while Internet Explorer outputs as HTML.

 

...823.jpg&w=90&h=60'/>  - Chrome

...823.jpg&w=90&h=60'>  - IE

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.