Having problems connection PHP to MSSQL2000
| From: | A. Mikkelsen | Date: | Thu, 27 Feb 2003 14:10:01 +0000 |
| Subject: | Having problems connection PHP to MSSQL2000 | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-18735@lists.php.net to get a copy of this message | ||
Hi.
I'm just installed the last PHP version on a WIN2k server with MSSQL2000.
And i tried to connect to MSSQL with the following code:
<?
$dbhost = "localhost";
$username = "sa";
$password = "";
$dbName = "license";
MSSQL_CONNECT($hostname,$username,$password) or DIE("DATABASE FAILED TO
RESPOND."); mssql_select_db($dbName) or DIE("Table unavailable");
?>
But I keep getting the same error.
Fatal error: Call to undefined function: mssql_connect() in
D:\Licens\php\main.php on line 6
Can anybody help me ????
//Anders