title: Real-time controlled pop up box message on PHP
body: <p>I am developing a small real-time project where i am looking for something to send real-time announcements / pop up messages (that i can control) to push Admin controlled messages to all users on the web page.</p>
  
  <p>i came across something on the internet called <a href="http://codecanyon.net/item/realtime-announcements-bar-no-reloading-required/300845" rel="nofollow">Realtime announcer</a> but due to company policy, code has to be written by our self.</p>
  
  <p>now what i did i created a table on the DB "CTrealtimeUpdates" that will hold the updates and on the .php page i want to create something that will activate a javascript pop up box with the echoed message from the DB only when the table is updated with any news on the last 10 seconds (this is for active users on the page already) and on the last 5 minutes for any one who have just visited the page.</p>
  
  <p>DB Table :</p>
  
  <p>Date:
  Time:
  Announcement:
  Announcer:</p>
  
  <p>all i created is the table and i am stuck with what code should i do on the page.</p>
  
  <p>Appreciate your assistance please.</p>
  
  <p>Thank you</p>