When I have
ini_set('display_errors', '1');
I will see a rather complete error message if I try to do something wrong with the database. ie:
However, when I use the following code:
$result[] = mssql_get_last_message();
return $result;
I just get back:
Any idea how I can get a more complete error message? I especially want to see the reason for the error (i.e., "Cannot insert the value NULL into column 'UserName', table 'ORDER'; column does not allow nulls. INSERT fails.") I am using MS SQL Server 2000 for this application.