Re: Suggestion for fetchInto

From: Date: Sat, 21 Apr 2001 05:19:52 +0000
Subject: Re: Suggestion for fetchInto
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-282@lists.php.net to get a copy of this message
Quoting "Tomas V.V.Cox" <cox@idecnet.com>: > Now you need to do: > > while (DB_OK === $res->fetchInto($row)) { > ... > } > > With the new value, people could simply use: > > while ($res->fetchInto($row)) { That would fail miserably if an error was returned. -chuck -- Charles Hagenbuch, <chuck@horde.org> Taurus: You will receive an urgent transmission from the Martian government informing you that Mars does not, in fact, need women, so please stop sending them.

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