undefiend function error --- why ? --
| From: | ts | Date: | Wed, 07 May 2003 16:30:41 +0000 |
| Subject: | undefiend function error --- why ? -- | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-5256@lists.php.net to get a copy of this message | ||
Hi,
I've just installed pear on my laptop and i tried to use pear::DB
exactly with the same code-files as with my desktop computer.
But i get only the "undefiend function" error, at the first function
with the syntax $X->function($Y); no matter what function i use!
What can be the reason for this?
Here the first lines of my code:
<?php
include_once("smarty_config.inc.php");
include_once("/usr/share/pear/DB.php");
include_once(CONFIG_DIR . 'db_config.inc.php');
include_once(TEMPLATE_DIR . 'class.template.php');
$tpl = new Template_API();
$tpl->setTemplate("db_test.tpl.html");
$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