The error message for Microsoft SQL Server is actually the result of the mssql_get_last_message() function.
?php $link = dbx_connect( "mysql", "localhost", "base de données", "utilisateur", "mot de passe") or die ("Impossible de se connecter"); $result = dbx_query($link, "select id from nonexistingtbl"); if ($result==0) {echo dbx_error($link);} dbx_close($link);?