note 82324 added to function.mssql-connect

From: Date: Sat, 05 Apr 2008 18:44:30 +0000
Subject: note 82324 added to function.mssql-connect
Groups: php.notes 
Request: Send a blank email to php-notes+get-137967@lists.php.net to get a copy of this message
I have been trying to get connected to my MSSQL2005 via php and I'm having troubles. can someone please look at my code and tell me what I am doing wrong. I dont beleive I need to use a Named Pipe because using asp I can simple use the local IP address to connect. I have copied the correct DLL file to my php server (Windows 2003 Ent) so I am thinking I am just not writting the code correctly, yes I am new at this. <?php //Server and login Info $SERVER = '192.168.1.9'; $USER_NAME = "name"; $USER_PASS = "password"; $DATABASE = "database"; //Connecting to the server $CONN = mssql_connect($SERVER, $USER_NAME, $USER_PASS) or die ("Can't connect to Microsoft SQL Server"); //Selecting the database mssql_select_db($DATABASE, $CONN) or die ("Can't connect to Database"); ?> ---- Server IP: 69.147.83.197 Probable Submitter: 64.215.226.2 ---- Manual Page -- http://www.php.net/manual/en/function.mssql-connect.php Edit -- https://master.php.net/note/edit/82324 Del: integrated -- https://master.php.net/note/delete/82324/integrated Del: useless -- https://master.php.net/note/delete/82324/useless Del: bad code -- https://master.php.net/note/delete/82324/bad+code Del: spam -- https://master.php.net/note/delete/82324/spam Del: non-english -- https://master.php.net/note/delete/82324/non-english Del: in docs -- https://master.php.net/note/delete/82324/in+docs Del: other reasons-- https://master.php.net/note/delete/82324 Reject -- https://master.php.net/note/reject/82324 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#137967) next »