SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Wizard
    Join Date
    Mar 2008
    Location
    United Kingdom
    Posts
    1,285
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    IE6 crashes when loading a script

    Hi,

    I've never really came across this issue before, but noticed a PHP page on my site crashes in IE6.

    It's the home page after a user has logged in.

    I've done a bit of commenting out, and it seems to 'crash' when I start a particularIF statement. If I remove it, the rest of the script loads fine.

    Has anyone ever experienced this before?

    Am I asking too much of the browser and it can't handle all the queries?


    Many thanks for any suggestions

  2. #2
    From Italy with love silver trophybronze trophy
    guido2004's Avatar
    Join Date
    Sep 2004
    Posts
    9,510
    Mentioned
    163 Post(s)
    Tagged
    4 Thread(s)
    Does it only crash in IE6? And what does "crash" mean?
    Browsers don't care about queries and PHP. All they care about is the HTML/JS/CSS code they have to handle.
    So maybe that 'if' outputs some HTML code that makes IE6 crash.
    Without seeing the code it's hard to tell, though

  3. #3
    SitePoint Wizard
    Join Date
    Mar 2008
    Location
    United Kingdom
    Posts
    1,285
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the prompt reply.

    Here's where it crashes. The page throws up one of those 'Send' / 'Do Not Send' debug alerts

    Here's the code where it crashes. When I comment this out, the page loads fine.

    PHP Code:
    <div class="c3content"><div class="one"><div class="three">
        <h3 class="boxhead">Your Jobs</h3>
        <table class="user-details"  border="0" cellspacing="0" cellpadding="0">
        <?php

        
    // current jobs search function
        
    $sql1 "SELECT...";
        
    $res1 mysql_query($sql1);
          
        if (
    mysql_num_rows($res1) > '0') {    
        
          while (
    $row1 mysql_fetch_array($res1)) {
            echo 
    '<tr>';
            echo 
    '<th scope="row"'; if ($row1['9'] == 'Y') { echo ' class="approved"'; } else { echo ' class="unapproved"'; } echo '><p><a href="job.php?id='.htmlspecialchars($row1['0']).'">'.htmlspecialchars($row1['1']).'</a> ('.htmlspecialchars($row1['8']). ') '.htmlspecialchars($row1['6']).'</p></th>';
            echo 
    '</tr>';
          }
          
            echo 
    '<tr>';
              echo 
    '<th scope="row">> <a href="addjob.php">Add a Job</a> | <a href="jobs.php">Manage your Jobs.</a></th>';
            echo 
    '</tr>';
        
        } else {
        
          echo 
    '<p>You have no Jobs currently online. <a href="addjob.php">Add a Job</a></p>';
        
        }
        
        
    ?>
        
        </table>
      <div class="four"></div></div></div></div>
    Many thanks for any suggestions.

  4. #4
    From Italy with love silver trophybronze trophy
    guido2004's Avatar
    Join Date
    Sep 2004
    Posts
    9,510
    Mentioned
    163 Post(s)
    Tagged
    4 Thread(s)
    Comment out the echo statements one by one, and try to find the one that creates the output that is giving IE6 a headache

  5. #5
    SitePoint Wizard
    Join Date
    Mar 2008
    Location
    United Kingdom
    Posts
    1,285
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sounds good. Will be back in a mo.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •