Yes you can easily hide an error message that PHP creates by sticking an "@" sign before the function.
an example would be:
@mysql_close();
if the database was closed already and you tried to call this function again it would normally display an error message to the web but because you have an "@" sign in front of it the error no longer displays.