mssql_connect error
| From: | Gary Ogilvie | Date: | Wed, 25 Jun 2003 17:48:21 +0000 |
| Subject: | mssql_connect error | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-152838@lists.php.net to get a copy of this message | ||
Hi all,
I am testing a connection to MSSQL but I get the following error:
Fatal error: Call to undefined function: mssql_connect() in
c:\inetpub\scripts\newsletter.php on line 28
I don't understand what this error is - my code is as follows:
$myServer = "localhost";
$myUser = "admin";
$myPass = "cradle";
$myDB = "MGN";
$s = mssql_connect($myServer, $myUser, $myPass)
or die("Unable to connect to MSSQL on $myServer");
$d = mssql_select_db($s, $myDB)
or die("Unable to select database: $MGN");
I can't see anything wrong with my code so I assume something is not set
up correctly? The extensions_dir in php.ini (winnt folder) is pointing
to the correct place.
Thanks in advance.
Gary