Unable to connect to msSQL database via PHP

前端 未结 9 415
余生分开走
余生分开走 2021-01-13 07:30

I am using the current code in attempt to access a msSQL 2005 db:



        
9条回答
  •  有刺的猬
    2021-01-13 08:10

    Try calling mssql_get_last_message() to get the last error message:

    $dbhandle = mssql_connect($myServer, $myUser, $myPass)
      or die("Couldn't connect to SQL Server on $myServer. Error: " . mssql_get_last_message());
    

提交回复
热议问题