apache und MS-SQL 2000
Hi,
ich habe Apache, MS-SQL 2000 und PHP 4 installiert. Allerdings bekomme ich keine connection zur MS-SQL-Datenbank. Es handelt sich nicht um eine MySQL-Datenbank.
Hier der Code mit dem ich eine Verbindung zur Datenbank erstellen will:
// This function will connect to a MySQL database. If the attempt to connect
// fails, an error message prints out and the script will exit.
/* Datenbankserver */
$db_server = "127.0.0.1";
/* Datenbankname */
$db_name = "test";
/* Datenbankuser */
$db_user = "Administrator";
/* Datenbankpasswort */
$db_passwort = "rachael";
/* Erstellt Connect zu Datenbank her */
$db = @MSSQL_PCONNECT($db_server,$db_user,$db_passwort)
or die ("Konnte keine Verbindung zur Datenbank herstellen");
Ich bin für jede Hilfe dankbar.
Gruss
Roland
|