Re: DB::fetchRow() question

From: Date: Tue, 21 Aug 2001 11:42:15 +0000
Subject: Re: DB::fetchRow() question
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-1647@lists.php.net to get a copy of this message
[Cynic <cynic@mail.cz>] > Hi there, > > can anyone tell me why fetchRow() expects resultset identifier > as its first argument? It's in $this->result, so why increase > the programmer's burden? > > The function looks like this: > function &fetchRow($result, $fetchmode = DB_FETCHMODE_DEFAULT) > > when all that is IMO needed is > function &fetchRow($fetchmode = DB_FETCHMODE_DEFAULT) > > > I must have missed something... You missed the fact that you're not supposed to be calling for example DB_mysql::fetchRow() from your script. Your interface to results is in DB_result::fetchRow(), which does not require this parameter. - Stig -- Stig Sæther Bakken <ssb@alltheweb.com> Fast Search & Transfer ASA, Trondheim, Norway

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