Date: 04/15/01
- Next message: Derick Rethans: "Re: [PHP-DEV] RE: PHP 4.0 Bug #10299 Updated: CPU and Memory Spike"
- Previous message: Alexander Feldman: "[PHP-DEV] Re: Bug in PHP-4.0.5RC6?"
- In reply to: Chris Newbill: "[PHP-DEV] Question about PEAR DB (mysql)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
["Chris Newbill" <cnewbill <email protected>>]
> There are two functions query and simpleQuery...query CAN return a DB_Result
> object, simpleQuery returns a resource ID. When you call fetchRow() with a
> DB_Result, it fails because it expects simply a resource and doesn't check
> for a DB_Result object.
>
> It's a simple change to make this work. Is there some magical and
> mysterious reason this is so?
The DB_result object has a fetchRow method that is what you are
supposed to use. This method again calls for example
DB_mysql::fetchRow. So if you have a result object, call fetchRow in
the object, if you have a resource, call fetchRow in the connection
object.
- Stig
-- Stig Sæther Bakken <ssb <email protected>> Fast Search & Transfer ASA, Trondheim, Norway-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Derick Rethans: "Re: [PHP-DEV] RE: PHP 4.0 Bug #10299 Updated: CPU and Memory Spike"
- Previous message: Alexander Feldman: "[PHP-DEV] Re: Bug in PHP-4.0.5RC6?"
- In reply to: Chris Newbill: "[PHP-DEV] Question about PEAR DB (mysql)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

