Page 1 of 1

I have a problem's connection with ms sql server 2000

Posted: Wed Jul 29, 2009 8:42 am
by Nancy_Sadek
Hi ,

I have two machines (my PC , another server)

My PC has xampp to run php files and the server has sql server 2000 version 8.0

I need to connect with the database in the server

my code is the standard to connect any server (but still I have the same problem which is unable to connect sql server : <servername>

please could anyone help me to solve this

N.B
the mssql is loaded in the php.ini

my code is
<?php
$myServer = "servername"; //my server name
$myUser = "User"; //Username
$myPass = "pass"; //mypassword
$myDB = "DATABASE";

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


?>

thanks,