Infinite loop in DB/mssql.php
| From: | Andreas Schallwig | Date: | Fri, 19 Oct 2001 20:34:47 +0000 |
| Subject: | Infinite loop in DB/mssql.php | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-406@lists.php.net to get a copy of this message | ||
Hi,
I'm trying to recieve data from a MSSQL7-Server but my script always ends up
in an infinite loop.
while ( $row = $db_result->fetchRow()) {
echo $row[0] . "<br>";
}
It's really strange, the script will output all the data of my query but the
while-loop won't stop after the last record, instead it keeps returning
empty rows of data, turning the whole thing into an infinite loop.
I use PHP 4.0.6 (Linux) on Apache 1.3.20
mssql.php version: 1.21
DB.php version: 1.62
I also tried to checkout the latest versions of those scripts but these
won't work either. I get the Error-Message DB Error: extension not found
Can anybody help?
Cheers,
Andreas Schallwig
--
mediazwo ag fon//+49/781/919 369 0
Kornstraße 7 fax//+49/781/919 369 99
77652 Offenburg http://www.mediazwo.de