开发者

How do I continually update a mysql database driven webpage?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜