Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.