diff --git a/var/www/messagesInbox.php b/var/www/messagesInbox.php index 353b6b2..4c3a29b 100644 --- a/var/www/messagesInbox.php +++ b/var/www/messagesInbox.php @@ -1,6 +1,12 @@ exec("UPDATE messages SET haveread='Y' WHERE recipient='".$_SESSION["loggedInUser"]."'"); + }catch(PDOException $e){echo "PDOException: ".$e->getMessage(); + }catch(Exception $e){echo "Exception: ".$e->getMessage(); + } ?>