Hello, I have a page, the contents are gotten dynamically with php and I use a foreach loop to display all the content.
- <?php
- foreach($data as $key){
- echo "<div id="post_content"> $post['post'] </div>";
- }
- ?>
They are also a lot of conditions in the foreach loop for example, if post was a shared post display this and that.
Now I get my feed just as it is, but the problem here is, the page needs to be refreshed before you see new post rows from the database.
This is where twitter comes in, when you're on twitter and a there's new post from someone you are following, it shows "1 new tweet" at the top of the feed, when you click this it shows the content of the tweet.
My questions are;
1. How do i add this feature to my page?
2. The load more functionality, which loads more tweets when it has been clicked, how do i do this as well?
Any help would be greatly appreciated.