Re: PEAR on LInux to Oracle

From: Date: Thu, 12 May 2005 20:23:35 +0000
Subject: Re: PEAR on LInux to Oracle
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-19177@lists.php.net to get a copy of this message
On 5/12/05, sol beach <sol.beach@gmail.com> wrote: > I apologize if this is considere long, but I wanted to be as complete > as I could be with > what I have done so far. > > I have succeeded in getting PEAR to talk to Oracle & MYSQL from a Windoze box. > I can get PEAR to successfully get data from MYSQL from Linux. > I am having a problem getting PEAR to get data from Oracle on Linux. > It appears I am connecting to the Oracle DB without error, but get an > error when doing SELECT. > The same code which works on Windoze, fails on Linux. > I'm not sure this matters, but I am connecting to V9.2 & V8.1.7 Oracle. > > I'm a real newbie when it comes to PHP & PEAR. > > When I invoke my PHP code I get the following error > > Fatal error: Call to undefined method DB_Error::fetchRow() in > /b/lampp/htdocs/admin/pear-test.php on line 69 > > My code contains the following: > ============================== > $res =& $dbh->query($stmt); > while ($row =& $res->fetchRow()) { > ============================== > where line 69 is the while statement immediately above > AFAIK, I have successfully opened the connection & have a valid > database handle ($dbh). > I am kind of at a loss about how to eliminate the error. > Again a copy of this PHP file executes fat, dumb & happy on Windoze. You're getting an error back. Check the docs again for how you're supposed to handle errors. -- Justin Patrin

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