Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> połaczenie php + mssql, problem z połączeniem z mssql poprzez php
jaceksww
post
Post #1





Grupa: Zarejestrowani
Postów: 3
Pomógł: 0
Dołączył: 1.12.2010

Ostrzeżenie: (0%)
-----


witam mam problem.. walcze z tym dosc dlugo wiec moze ktos mi pomoze?
musze polaczyc sie z baza mssql przy uzyciu php..

u uslugodawcy mojego serwera (niededykowany zwykle miejsce na serwerze apache) uslyszalem ze to mozliwe tylko na windows'owskim serwerze..
chyba tak nie jest wiec probowalem na localhost (webserv)

odkomentowalem ;php_mssql.dll
wrzucilem plik ntwdblib.dll do system32 (z webserv/php)

i nic..

$myServer = "mssql2005xxxxxxxxxxpl";
$myUser = "xxxxxxxxx";
$myPass = "xxxxxxxxx__";
$myDB = "xxxxxxxx";

//connection to the database
$dbhandle = mssql_connect($myServer, $myUser, $myPass)
or die("Couldn't connect to SQL Server on $myServer");

//select a database to work with
$selected = mssql_select_db($myDB, $dbhandle)
or die("Couldn't open database $myDB");

blad

Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server: mssql2005.xxxxxxxxxxxxin C:\Program Files\WebServ\httpd\index.php on line 22
Couldn't connect to SQL Server on mssqxxxxxxorg.pl


moze ktos mi podpowiedziec jak to zrobic? dzieki
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 25.08.2025 - 13:36