Did you enable the appropriate extension? If so have to given the IUSR_XXX (PHP) user permission to access/execute?
Do phpinfo() to see if MSSQL is enabled... Cheers Mike -- Michael Power Software Developer Concentrix Limited _______________________________________ Helping you strengthen your customer relationships To find out more about how we can help you visit our website http://www.concentrix.co.uk The Technology Centre, Epinal Way, Loughborough, Leicestershire, LE11 3GE T: +44 (0)1509 235000 F: +44 (0)1509 221740 _______________________________________ > "A. Mikkelsen" > > Hi. > > I'm just installed the last PHP version on a WIN2k server with MSSQL2000. > And i tried to connect to MSSQL with the following code: > > <? > $dbhost = "localhost"; > $username = "sa"; > $password = ""; > $dbName = "license"; > MSSQL_CONNECT($hostname,$username,$password) or DIE("DATABASE FAILED TO > RESPOND."); mssql_select_db($dbName) or DIE("Table unavailable"); > ?> > > But I keep getting the same error. > > Fatal error: Call to undefined function: mssql_connect() in > D:\Licens\php\main.php on line 6 > > Can anybody help me ???? > > //Anders > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php