Re: [PEAR] PEAR on LInux to Oracle
by Justin Patrin other posts by this author
May 12 2005 4:28PM messages near this date
[PEAR] problem with DB_DataObject
|
[PEAR] RE: unix2MDBstamp() and day light savings
On 5/12/05, sol beach <sol.beach@[...].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
--
PEAR General Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
|