?php $link = dbx_connect( DBX_MYSQL, "localhost", "db", "username", "password") or die ("Could not connect"); $result = dbx_query($link, "select id from non_existing_table"); if ($result == 0) {echo dbx_error ($link);} dbx_close ($link);?
Notez que le module ODBC ne supporte pas encore cette fonction.