RE: [PEAR] undefined function error

From: Date: Sun, 27 Apr 2003 15:47:17 +0000
Subject: RE: [PEAR] undefined function error
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-5088@lists.php.net to get a copy of this message
> From: ts [mailto:t.schmidt@wtal.de] > Sent: Sunday, April 27, 2003 5:34 PM > $sql = "SELECT pid, name, vorname FROM t_bew_schueler"; > > $res = $db->query($sql); > > if (DB::isError($res)) { > die($result->getMessage()); > } > > $schueler = $res->getAll($res, DB_FETCHMODE_ASSOC); > > ^ > |--- here is the error ! > you are using the method incorrectly: $schueler = $db->getAll($query, DB_FETCHMODE_ASSOC); see here for details in the manual: http://pear.php.net/manual/en/core.db.getall.php also there is a german pear mailinglist: http://www.php-center.de/php-de/index.php regards, Lukas

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