homepage Welcome to WebmasterWorld Guest from 54.211.97.242
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
PHP code crashing IE7 ?
adammc

10+ Year Member



 
Msg#: 3632904 posted 4:05 am on Apr 23, 2008 (gmt 0)

Hi guys,

Can anyone please help?

The following block of code is causing IE & to crash. However it runs perfectly in Firefox ?

[php]
<?
if (!empty($r['thumb2']) ) {
?>

<a class="thumbnail" href="<? echo "$UploadURL"; ?><? echo ''.$r['picture2'].'';?>"><img src="<? echo "$ThumbURL"; ?><? echo ''.$r['thumb2'].'';?>" width="110px" height="90px" style="border:1px solid #D5CEB4;margin-bottom:10px;" alt="<? echo ''.$r['product_name'].'';?>" /><span>
<img src="<? echo "$UploadURL"; ?><? echo ''.$r['picture2'].'';?>" width="350px" height="243px" alt="<? echo ''.$r['product_name'].'';?> Toys" /><br />

<?
}
?>

<?
if (!empty($r['thumb3']) ) {
?>

<a class="thumbnail" href="<? echo "$UploadURL"; ?><? echo ''.$r['picture3'].'';?>"><img src="<? echo "$ThumbURL"; ?><? echo ''.$r['thumb3'].'';?>" width="110px" height="90px" style="border:1px solid #D5CEB4;margin-bottom:5px;" alt="<? echo ''.$r['product_name'].'';?>" /><span>
<img src="<? echo "$UploadURL"; ?><? echo ''.$r['picture3'].'';?>" width="350px" height="243px" alt="Buy <? echo ''.$r['product_name'].'';?> Toys" /><br />

<?
}
?>
[/php]

 

adammc

10+ Year Member



 
Msg#: 3632904 posted 4:19 am on Apr 23, 2008 (gmt 0)

Nevermind I got it! The damn span tags were all wrong

dreamcatcher

WebmasterWorld Senior Member dreamcatcher us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 3632904 posted 2:06 pm on Apr 23, 2008 (gmt 0)

Glad you got it sorted. An HTML validator might be useful. If you are using Firefox, it has a few useful add-ons for validating code. Or you can use the W3C website.

dc

g1smd

WebmasterWorld Senior Member g1smd us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 3632904 posted 12:41 am on Apr 24, 2008 (gmt 0)

The HTML Validator add-on for Firefox sees daily use here. Essential.

OutdoorWebcams

5+ Year Member



 
Msg#: 3632904 posted 7:39 am on Apr 24, 2008 (gmt 0)

BTW, PHP code can't crash a browser as it's processed by a web server. It could (if any) crash the web server.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved