Re: [PHP-DB] I'm curious and baffled. From: phobo (antiphobo <email protected>)
Date: 11/14/00

This is almost-obviously a case where you have not compiled PHP to have the
MSSQL functions :) Or on Win32, you might need the correct .dll.

See www.php.net for the compile parameter; i'm not sure of it.

see
http://www.php.net/manual/ref.mssql.php
and
http://www.php.net/manual/function.mssql-connect.php has info

for other info.

Siggy

----- Original Message -----
From: "CC Zona" <cczona <email protected>>
To: <php-db <email protected>>
Sent: Wednesday, November 15, 2000 7:06 AM
Subject: Re: [PHP-DB] I'm curious and baffled.

> In article <8urqgh$7c6$1 <email protected>>, scott <email protected> ("Scott
> Fletcher") wrote:
>
> > When I use the php code, "mssql_connect("***","***","***") or die
> > ("Couldn't connect to the server.");" and run it. All I got was an
error
> > message saying undefined function for mssql_connect(). Why is that?
>
> I'm not familiar with MSSQL, but it looks like mssql_get_last_message ()
is
> the closest equivalent to what I'd use ("mysql_error()"). Use it instead
> of your hardcoded die message to find out more about why the connection is
> failing. e.g. "...or die ( mssql_get_last_message ());".
>
> (BTW, you do know for sure that your PHP build included support for MSSQL
> functions, right?)
>
> --
> CC
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-db-unsubscribe <email protected>
> For additional commands, e-mail: php-db-help <email protected>
> To contact the list administrators, e-mail: php-list-admin <email protected>
>
>

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-db-unsubscribe <email protected>
For additional commands, e-mail: php-db-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>