开发者

How do I continually update a mysql database driven webpage?

开发者 https://www.devze.com 2023-03-09 07:22 出处:网络
How would i populate a page with data that is pulled from a开发者_C百科 mysql database and have the content update as the data in the database updates?How would i populate a page with data that is pul

How would i populate a page with data that is pulled from a开发者_C百科 mysql database and have the content update as the data in the database updates?


How would i populate a page with data that is pulled from a mysql database:

Its very generic question :) You will need a webserver and host an application on that server which connects to database and fetches the results and parses them in html for clients.

If you want to update the page once database is updated , you can use Comet or HTML5 websockets.


Periodically poll the main page, or use long polling, which leaves the request open until the new data is ready to be sent back.

0

精彩评论

暂无评论...
验证码 换一张
取 消