RE: [PEAR] getOne problem

From: Date: Mon, 24 Feb 2003 21:20:40 +0000
Subject: RE: [PEAR] getOne problem
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-3927@lists.php.net to get a copy of this message
I'm not sure if this is your problem, but your code: $dbh->getOne("select id from login where name="bob"); may need to be changed to: $dbh->getOne("select id from login where name='bob'"); -David DiMaria -----Original Message----- From: Gigabyte [mailto:gigabyte@superdudes.net] Sent: Monday, February 24, 2003 2:15 PM To: Pear-General-Help Subject: [PEAR] getOne problem 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: Call to a member function on a non-object any suggestions? -Mike -- PEAR General Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.pear.general (#3927) next »