["Chris Newbill" <[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 <[EMAIL PROTECTED]>
Fast Search & Transfer ASA, Trondheim, Norway
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]