Re: A feature that would be good for PEAR::DB

From: Date: Sun, 11 Nov 2001 20:49:10 +0000
Subject: Re: A feature that would be good for PEAR::DB
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-2818@lists.php.net to get a copy of this message
Jason Lustig wrote: > > OK... sometimes when I work with an SQL query, this is what I do; > > ---- > > $SQL = "select * from theTable"; > $result = $db->query($SQL); > while ($result->fetchInto($rec)) > { > // output stuff > } > > ---- > > However, this throws me into an infinite loop, since when it finishes > recursing from the data in $result, it doesn't stop. Why is not stopping? Please provide the last lines of output of: while ($result->fetchInto($rec)) { print_r($row); } If you are using the odbc driver there was a PHP problem with corrupted values returned by odbc_error(). What driver are you using? Tomas V.V.Cox

« previous php.pear.dev (#2818) next »