Ajax: distinguish old posts and new posts.
- by xRobot
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 ) ?