Question about PEAR DB (mysql)
| From: | Chris Newbill | Date: | Sat, 14 Apr 2001 23:26:46 +0000 |
| Subject: | Question about PEAR DB (mysql) | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-51587@lists.php.net to get a copy of this message | ||
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?
Chris Newbill
OneWest.net Inc.,
Programmer/Analyst
406.449.8056
cnewbill@onewest.net
/*
Windows crashed.
I am the Blue Screen of Death.
No one hears your screams.
*/