What do you mean? How do I do this? -----Original Message----- From: Michael A Smith [mailto:[EMAIL PROTECTED] 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php