How to get data from PHP MySQL realtime and display it

Asked By 0 points N/A Posted on -
qa-featured

Dear Friends, I am wondering about how to get data from PHP Mysql realtime and display it in real time using PHP. Without refreshing the page. Please do the needful

SHARE
Answered By 0 points N/A #196549

How to get data from PHP MySQL realtime and display it

qa-featured

Hi,

Use JavaScript to call a function that will update calls every n milliseconds. You also need to use JQuery library to deal with Ajaxs’call in order to update your page. If you don’t have JQuery then download it. Check JQueryAjax.txt attached to this message. The file has a code showing how to update. The code make use of the PHP script to call the server and update the webpage. The page is updated every 1000 milliseconds.
 
You can also check this site that has a nice tutorial with details on how to use Ajax, JavaScript and PHP to display the data without refreshing the page.

I hope this helps.

 

Related Questions