thak's to all but i resolved with a dsn connection $con = odbc_connection('dsn_con','un_db','pwd_db'); and odbc function ... ? I don't know if they function fine.... "Stephen" <stephen.edmonds5@btinternet.com> ha scritto nel messaggio 02b901c3670f$4c698520$8000a8c0@q">news:02b901c3670f$4c698520$8000a8c0@q... > Giko > > You will need to tell us what the error message it is you get before we can > help you. > > Stephen > > > ----- Original Message ----- > From: "giko" <giko@quipo.it> > To: <php-db@lists.php.net>; <php-windows@lists.php.net> > Sent: Wednesday, August 20, 2003 9:06 AM > Subject: [PHP-WIN] db connection php & mssql & win2k > > > > hi, > > > > i try > > > > $serdb="LOCALMACHINE"; #the name of the SQL Server > > $dbdb="dbname"; #the name of the database > > $userdb="userdb"; #a valid username > > $passdb="passdb"; #a password for the username > > > > # one line > > $con=odbc_connect("Driver={SQL > > Server};Server=".$serdb.";Database=".$dbdb,$userdb,$passdb)or die(" > > connessione non riuscita"); > > # one line > > > > but it doesn't work ... > > > > can anyone help me please? > > > > bye > > > > thank's a lot > > > > > > > > -- > > PHP Windows Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php