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

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Nancy_Sadek
Forum Newbie
Posts: 1
Joined: Wed Jul 29, 2009 8:35 am

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

Post 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,
Post Reply