PHP Function givine IE problems
<p>I have a small PHP function that is called from one of my pages.</p>

<pre><code>function ratingDetails($uid, $align, $width) {
$queryFull = "SELECT * FROM rating WHERE uid = $uid";
$resultFull = mysql_query($queryFull);

        //START DISPLAY TABLE IF RESULTS
        if(mysql_num_rows($resultFull) &gt; 0) {    

            echo "&lt;table class=\"ratingTable\" align=\"center\" border=\"1\" cellspacing=\"0\" cellpadding=\"3\" width=\"550\"&gt;\n";
            echo "&lt;tr bgcolor=\"#6699cc\"&gt;&lt;th&gt;STARS&lt;/th&gt;&lt;th&gt;DATE RATED&lt;/th&gt;&lt;th&gt;COMMENT&lt;/th&gt;&lt;th&gt;RATED BY&lt;/th&gt;&lt;/tr&gt;\n";

                while($rowFull = mysql_fetch_array($resultFull)) {
                    $rating = $rowFull['rating'];
                    $comment = $rowFull['comment'];
                    $datePosted = date("M j, Y", $rowFull['date']);
                    $rid = $rowFull['raterID'];
                    $rater = getUsername($rid);

                    //SHOW STARS
                    if($rating == 0) { $stars = "notYet.jpg"; }
                    if($rating == 1) { $stars = "starOne.jpg"; }
                    if($rating == 1.5) { $stars = "starOneHalf.jpg"; }
                    if($rating == 2) { $stars = "starTwo.jpg"; }
                    if($rating == 2.5) { $stars = "starTwoHalf.jpg"; }
                    if($rating == 3) { $stars = "starThree.jpg"; }
                    if($rating == 3.5) { $stars = "starThreeHalf.jpg"; }
                    if($rating == 4) { $stars = "starFour.jpg"; }
                    if($rating == 4.5) { $stars = "starFourHalf.jpg"; }
                    if($rating == 5) { $stars = "starFive.jpg"; }

                    //DISPLAY IT ALL
                    echo "&lt;tr&gt;&lt;td width=\"10\"&gt;&lt;img src=\"/images/rating/$stars\" width=\"105\" height=\"20\" /&gt;&lt;/td&gt;";
                    echo "&lt;td width=\"75\" align=\"center\"&gt;$datePosted&lt;/td&gt;&lt;td&gt;$comment&lt;/td&gt;&lt;td width=\"85\"&gt;$rater&lt;/td&gt;&lt;/tr&gt;\n";
                }//END WHILE
                echo "&lt;/table&gt;\n";
        } //END IF
        else {
            echo "&lt;table class=\"ratingTable\" align=\"center\" border=\"1\" cellspacing=\"0\" cellpadding=\"8\" width=\"550\"&gt;\n";
            echo "&lt;tr&gt;&lt;td align=\"center\"&gt;&lt;span class=\"blue\"&gt;NO REVIEWS OR RATINGS FOR THIS DISTRIBUTOR&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;\n";    

        }        //END IF ELSE
</code></pre>

<p>}</p>

<p>But when it runs in IE (7 or 8), it throws this error:</p>

<blockquote>
  <p>A script on this page is causing Internet Explorer to run slowly.  Bla bla bla...</p>
</blockquote>

<p>I call this function from two pages and both cause the same error. If I remove the call from the page, the page loads fine.</p>

<p>There is no javascript involved with the pages in question...</p>

<p><em><strong>Help, help, help...  I don't have much hair left...</em></strong></p>

<p>Rick</p>
