FW: [PEAR-DEV] DB stuff

From: Date: Thu, 05 Apr 2001 22:59:29 +0000
Subject: FW: [PEAR-DEV] DB stuff
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-172@lists.php.net to get a copy of this message
WHOA! > return (object)$arr; Where's that documented? MY GOD, MAN! MY LIFE COULD HAVE BEEN SO EASY :) -B -----Original Message----- From: Joao Prado Maia [mailto:jpm@phpbrasil.com] Sent: Monday, March 26, 2001 1:07 PM To: pear-dev@lists.php.net Subject: Re: [PEAR-DEV] DB stuff On Sun, 25 Mar 2001, Colin Viebrock wrote: > 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. :) > What about this ? $data = (object) $dbh->fetchRow($result, DB_FETCHMODE_ASSOC); Adding a new function that does the same thing as this simple line is just ridiculous. Am I missing something here ? Joao -- João Prado Maia <jpm@phpbrasil.com> http://phpbrasil.com - php com um jeitinho brasileiro -- Contribua com o projeto de tradução do manual online do PHP http://phpbrasil.com/traducao.php -- -- PEAR Development Mailing List (http://pear.php.net/) To unsubscribe, e-mail: pear-dev-unsubscribe@lists.php.net For additional commands, e-mail: pear-dev-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

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