getOne problem - still no solution
| From: | Gigabyte | Date: | Mon, 03 Mar 2003 20:43:15 +0000 |
| Subject: | getOne problem - still no solution | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-4031@lists.php.net to get a copy of this message | ||
I'm still hunting for a solution to my getOne issue...
Any takers?
-------
I seem to be having issues with getOne.
$dbh->getOne("select id from login where name='bob'");
If I send an sql query that returns an Empty Set, it comes back with the
following error:
PHP Fatal error: Call to a member function on a non-object in
xxx.class on line 15
This is the same query run from the mysql command line:
mysql> SELECT id from login where name = 'bob';
Empty set (0.00 sec)
Help!?!