Ajax: distinguish old posts and new posts.

Posted by xRobot on Stack Overflow See other posts from Stack Overflow or by xRobot
Published on 2010-03-16T14:09:28Z Indexed on 2010/03/16 14:16 UTC
Read the original article Hit count: 563

Filed under:
|
|
|

Hi at all, I have created a very simple blog at www.example.com with a only one page. When I connect to www.example.com I see all posts inserted in the database ( in mysql ).

Now I want that every 60 seconds an ajax request check in the database if there are new posts. If there are new posts these will be inserted at the top above the old posts.

This is my question:

How can I through Ajax retrieve only new posts ( and so distinguish old posts and new posts ) ?

© Stack Overflow or respective owner

Related posts about AJAX

Related posts about mysql