Re: Having problems connection PHP to MSSQL2000
| From: | Michael Power | Date: | Thu, 27 Feb 2003 14:27:23 +0000 |
| Subject: | Re: Having problems connection PHP to MSSQL2000 | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-18736@lists.php.net to get a copy of this message | ||
Did you enable the appropriate extension?
If so have to given the IUSR_XXX (PHP) user permission to access/execute?
Do phpinfo() to see if MSSQL is enabled...
Cheers
Mike
--
Michael Power
Software Developer
Concentrix Limited
_______________________________________
Helping you strengthen your customer relationships
To find out more about how we can help you visit our website
http://www.concentrix.co.uk
The Technology Centre, Epinal Way,
Loughborough, Leicestershire, LE11 3GE
T: +44 (0)1509 235000 F: +44 (0)1509 221740
_______________________________________
> "A. Mikkelsen"
>
> 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
>
>