When, my script runs it returns the following errors (Intentional):

Warning: Access denied for user: 'alistair@localhost' (Using password: YES) in c:\phpdev\www\databasemanager\index.php on line 35

Warning: MySQL Connection Failed: Access denied for user: 'alistair@localhost' (Using password: YES) in c:\phpdev\www\databasemanager\index.php on line 35


Is their any way to stop it returning this at the top of the page, as I want it to use custom error code!