Good day. Prompt the function to display an error (similar to mysql_error) using PHP tools when working with SQL Server or an alternative way to find out the error. PS If the connection to the database is unsuccessful, no error pops up. I connect the mssql_connect function ("host", "login", "pass")
If no error messages are returned from MSSQL.
UPD. Unfortunately, there is no server at hand to check, but maybe it generates standard PHP errors. Make sure you have error logging enabled:
error_reporting(-1); ini_set('display_errors', 'On');
Or, if your code is not tied to the mssql extension, you can use the ODBC driver.
And also pay attention to the functions in "See Also" in the description of mssql_get_last_message ()