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,
I have a problem's connection with ms sql server 2000
Moderator: General Moderators
-
Nancy_Sadek
- Forum Newbie
- Posts: 1
- Joined: Wed Jul 29, 2009 8:35 am