AW: [PEAR] Fatal error: Call to undefined function: query() in C:\php\pear\Auth\Container\DB.php on line 136

From: Date: Thu, 17 Oct 2002 13:08:51 +0000
Subject: AW: [PEAR] Fatal error: Call to undefined function: query() in C:\php\pear\Auth\Container\DB.php on line 136
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-2513@lists.php.net to get a copy of this message
> -----Ursprüngliche Nachricht----- > Von: Martin Jansen [mailto:mj@php.net] > Gesendet: Mittwoch, 16. Oktober 2002 19:35 > > > On Wed Oct 16, 2002 at 09:0200AM +0200, Glemnitz, Wolfgang wrote: > > Fatal error: Call to undefined function: query() in > > C:\php\pear\Auth\Container\DB.php on line 136 > > Are you sure you used the right credentials (username, password) for > connecting to the database? > Yes, - SAP-DB -> ODBC -> Access 2000 works, - SAP-DB -> PHP(ODBC) -> IE 6.0 works, Example: <? $dsn = "museum"; $user = "gast"; $pwd = "gast"; $id = odbc_connect($dsn, $user, $pwd) or die ("Verbindungsaufnahme zum Datenbankserver fehlgeschlagen!"); $result= odbc_exec($id, "SELECT * FROM gast_praeparat"); while (odbc_fetch_row($result)){ $praelang = odbc_result($result, "praelang"); echo " -> $praelang<br>"; } odbc_close($id); ?> - SAP-DB -> PHP(ODBC+ PEAR Auth) -> IE 6.0 not works, with username,password or blank, the error-message ist equal I have Auth manually installed, the model for the login is PHP-Kochbuch Seite 600-601, next experiment: new login.php Usage example Beispiel 1. from http://pear.php.net/manual/de/packages.auth.auth.php <?php require_once "Auth/Auth.php"; function loginFunction() { global $PHP_SELF; echo "<form method=\"post\" action=\"" . $PHP_SELF . "\">"; echo "<input type=\"text\" name=\"username\">"; echo "<input type=\"password\" name=\"password\">"; echo "<input type=\"submit\">"; echo "</form>"; } $dsn = "odbc://username:password@tcp+172.28.112.16:3111/museum"; $db = new Auth("DB", $dsn, "loginFunction"); $db->start(); if ($db->getAuth()) { echo "<a href=/datenbanken/museum/museumlogin.php></a>\n"; } ?> Auth.php is the original Auth.php version 1.43 same error: Fatal error: Call to undefined function: query() in C:\php\pear\Auth\Container\DB.php on line 136 ???? Regards and thanks, Wolfgang Glemnitz

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