Re: I'm curious and baffled.

From: Date: Tue, 14 Nov 2000 19:09:43 +0000
Subject: Re: I'm curious and baffled.
References: 1 2  Groups: php.db 
Request: Send a blank email to php-db+get-4434@lists.php.net to get a copy of this message
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@nospam.invalid> To: <php-db@lists.php.net> Sent: Wednesday, November 15, 2000 7:06 AM Subject: Re: [PHP-DB] I'm curious and baffled. > In article <8urqgh$7c6$1@toye.p.sourceforge.net>, scott@abcoa.com ("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@lists.php.net > For additional commands, e-mail: php-db-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.db (#4434) next »