The extensions directory is set to the correct path in the ini file though. I can't see where my error is...
-----Original Message----- From: Michael A Smith [mailto:[EMAIL PROTECTED] Sent: 25 June 2003 18:56 To: Gary Ogilvie Subject: RE: [PHP] mssql_connect error It's in the php.ini file. You have to load an extension. (Which is the mssql dll file.) You'll need to figure this out for yourself, as I said before, I've never used PHP on windoze before. On Wed, 2003-06-25 at 09:57, Gary Ogilvie wrote: > 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