Re: undefiend function error --- why ? --
| From: | Xavier | Date: | Wed, 07 May 2003 16:43:02 +0000 |
| Subject: | Re: undefiend function error --- why ? -- | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-5257@lists.php.net to get a copy of this message | ||
Ts wrote:
Hi,
But i get only the "undefiend function" error, at the first function
with the syntax $X->function($Y); no matter what function i use!
$dsn = $DB_dbType . "://"
. $DB_user . ":"
. $DB_pass . "@"
. $DB_host . "/"
. $DB_dbName;
$db = DB::connect($dsn, TRUE);
$sql = "SELECT pid, name, vorname FROM t_bew_schueler";
$res = $db->query($sql);
--------> here is the error! <-------------
Thanks in advance.
Torsten
Hi, and what give you a print_r($db) ?
$db = DB::connect($dsn, TRUE); print_r($db);
$sql = "SELECT pid, name, vorname FROM t_bew_schueler";regards -- Xavier