Jquery PHP

Auto Load and Refresh Div every 10 Seconds with jQuery.

Have you seen this Twitter Search and Facebook shows most recent tweets/posts count from the database every 10 seconds on top of the page. I had developed like this with jQuery and Ajax. It’s simple just 5 lines of code

Example 1

Index.html
Contains javascript and HTML code. Take a look at load(“record_cound.php”)

record_count.php
Just printing “17educations| Tutorial Blog” every 10 seconds


 Example 2



index.php
Contains PHP code you have to pass the search box value twitter.com/search?q=”some thing” to $search_word in facebook pass the user id or user session value.

record_count.php
Counting tweets/posts from the database.

db.php
Database configuration file, modify username, password and database values.