title: Making a chat function on my website
body: <p>I want tto make a chat on my site.
  Very basic I want people to login to chat. And when they do that I show them the last 5 messeges.</p>
  
  <p>When the person is writting something it is put into the database, and then reloads the site, with the new text from the database. So it only works when the user writes something, because it will only update when he press 'Write'.</p>
  
  <p>To make it even better I am thinking of making a javascript to look up the content of the database and every 3-5 seconds.</p>
  
  <p>Is that the right way to do it or is there a better way??</p>