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

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>