RE: [PHP] mssql_connect error
| From: | Gary Ogilvie | Date: | Wed, 25 Jun 2003 17:57:24 +0000 |
| Subject: | RE: [PHP] mssql_connect error | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-152843@lists.php.net to get a copy of this message | ||
What do you mean? How do I do this?
-----Original Message-----
From: Michael A Smith [mailto:php-digest@custom87.net]
Sent: 25 June 2003 18:53
To: Gary Ogilvie
Subject: Re: [PHP] mssql_connect error
You didn't compile with --enable-mssql.
-Michael
On Wed, 2003-06-25 at 09:48, Gary Ogilvie wrote:
> 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