Welcome to WebmasterWorld Guest from 54.161.25.142

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

PHP code crashing IE7 ?

     
4:05 am on Apr 23, 2008 (gmt 0)

10+ Year Member



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]

4:19 am on Apr 23, 2008 (gmt 0)

10+ Year Member



Nevermind I got it! The damn span tags were all wrong
2:06 pm on Apr 23, 2008 (gmt 0)

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



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

12:41 am on Apr 24, 2008 (gmt 0)

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



The HTML Validator add-on for Firefox sees daily use here. Essential.
7:39 am on Apr 24, 2008 (gmt 0)

5+ Year Member



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

Featured Threads

Hot Threads This Week

Hot Threads This Month