Ok try this one out, what is new is the mysql_select_db($database_announcement, $announcement); you had an incorrect one on the file, let me know if its updating or not remeber this should be included on every page of your site and on the login page you can add an update of the user status with data assist in an easy way if the user gets logged also