yeah i tried that and it worked locally, on my machine, but when i uploaded the db.php file with the changes it didn't display any errors. I have therefore concluded that it must be a problem with my contactus.php file. I'll get someone to have a look at it for me.
Thanks