Suggestion for fetchInto
| From: | Tomas V.V.Cox | Date: | Sat, 21 Apr 2001 01:50:34 +0000 |
| Subject: | Suggestion for fetchInto | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-281@lists.php.net to get a copy of this message | ||
Hi,
What do you think about setting the DB_OK constant to true o 1? It could
improve usability for some functions for ex: fetchInto().
Now you need to do:
while (DB_OK === $res->fetchInto($row)) {
...
}
With the new value, people could simply use:
while ($res->fetchInto($row)) {
...
}
Tomas V.V.Cox