Re: DB stuff

From: Date: Sun, 25 Mar 2001 23:26:35 +0000
Subject: Re: DB stuff
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-91@lists.php.net to get a copy of this message
> - IMHO there is no need to mantain two versions with the same > functionality of fetchrow (fetchrow() and fetchinto()). I propose to > erase one in backend extensions and "emulate" the other throw DB_result. > Something like this in DB_result: While we are at it, can we add this to DB_result: function fetchObject($fetchmode = DB_FETCHMODE_DEFAULT) { $res = $this->fetchInto ($arr, $fetchmode); if (is_object($res)) { return $res; } return (object)$arr; } I've been missing mysql_fetch_object since switching to PEAR. :) - Colin

« previous php.pear.dev (#91) next »