[snip]
    while($all->fetch()){

        $i = 0;
        $iss_link = explode(', ', $issues);
        foreach($iss_link as $a){
          $row2[$i] = "<a href=\"http://mantisus/view.php?id=$a\";
target=\"_blank\">".$a.'</a>';
          $i++;
        }
        $issues = implode(', ', $row2);

        echo $release_id;
        echo $description;
        echo $date;
        echo $issues;
        echo $priority;
        echo '<br />';
    }

    $all->close();
}
[/snip]

Is the while statement infinite or is the foreach infinite?

The infinite loop appears to be coming from $issues that never equates
to empty or false. Before $iss_link = explode(', ', $issues); you may
want to check the state of $issues like if('' != $issues).

Right now I can see that $issues is not empty because in the while loop
you populate $issues with $issues = implode(', ', $row2); the next time
the while loop comes around $issues is still full of stuff. You might
want to try unsetting $issues at the end of the while and then when it
comes around again $issues should be populated by the database query.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to