Hello,

W2k SP3, Apache 1.3.27(C:\apache) , PhP 4.2.3 (C:\php), 
Documentroot G:\webroot

i can the SAP-DB connected PHP over ODBC with String

$dsn = "museum";
$user = "gast";
$pwd = "gast";
$id = odbc_connect($dsn, $user, $pwd)
  or die ("Verbindungsaufnahme zum Datenbankserver fehlgeschlagen!");

its ok.

Connect with PHP+PEAR over ODBC with String

$db_typ = 'odbc';
$user = 'gast';
$pwd = 'gast';
$db_host = 'localhost:3111';
$dsn ='museum';

$id = "$db_typ://$user:$pwd@db_host/$dsn";

$db = DB::connect($id);

if (DB::isError($db)){
  die ($db->getMessage());
}

DB Error: connect failed

which format must having the String $id under Pear? 


I have no idea, where i can find the error.

What wrong do I make?  

Regards and thanks,

Wolfgang Glemnitz
_______________________________________________
sapdb.general mailing list
[EMAIL PROTECTED]
http://listserv.sap.com/mailman/listinfo/sapdb.general

Reply via email to