dberror — produce a more helpful error page when db connections fail
use Wacs;
dberror( | ...); |
| parameter | description |
|---|---|
| header | Whether to add an HTML preamble or not: n for no,
y for yes. |
| message | The message the end-user should recieve |
| error | The error message returned from the database routines; logged in the web server error log |
| dbuser | The database user account with which the access was being
attempted, from the config file's dbuser entry. |
| dbhost | The host specification of the database that it was trying to
access, from the config file's dbiconnect entry when
using perl, and the phpdbconnect entry when using
PHP |