Re: undefined function error
| From: | Klaus Guenther | Date: | Sun, 27 Apr 2003 15:57:34 +0000 |
| Subject: | Re: undefined function error | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-5089@lists.php.net to get a copy of this message | ||
----- Original Message -----
From: "Lukas Smith" <smith@backendmedia.com>
To: <t.schmidt@wtal.de>; <pear-general@lists.php.net>
Sent: Sunday, April 27, 2003 5:47 PM
Subject: RE: [PEAR] undefined function error
> > 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);
$schueler=$db->getAll($res, 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
>
>
> --
> PEAR General Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php