I have a PHP code which grabs data from site and it should be updated every second, I don't want to refresh whole page, I just want to refresh the data.
please suggest something.

Recommended Answers

All 2 Replies

You can use AJAX. Have a look for some tutorials. Also you can get some more information in the AJAX-Forum on Daniweb.
Regards

Member Avatar for diafol

You could use ajax for this, but that's a lot of calls on the server. What are you trying to do? Could you do one call to the server and then let just JS do something every second?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.