title: jquery Chat with PHP mySQL
body: <p>I set myself a challenge today to write a jQuery chat in under half an hour.  It eventually took me 40 minutes.</p>
  
  <p>However, I want to improve it so the load on the server and browser isnt horrendous.</p>
  
  <p>Currently the user types into a text box, presses enter, this data is sent to a .php file which updates a mySQL table and outputs all the rows on the table.</p>
  
  <p>There is a set Interval on the div every two seconds to update if anyone said anything without the user pressing enter.</p>
  
  <p>I just wanted to know thoughts on how to do perform this in a better way, or the most efficient way.  I want to understand the best technology to use and why.</p>
  
  <p>Thanks for all your input, I love stack overflow, its been invaluable to me.</p>