weixin_33709590 2015-09-23 06:50 采纳率: 0%
浏览 24

AJAX-数据库连接

What I was wondering is the following: When you call a script, lets call it makePage.php, clicking on a button and thus making an AJAX-request. Do I have to establish a new database connection? Even if I already established a connection to load in the page where the button is rendered on?

  • 写回答

2条回答 默认 最新

  • weixin_33725807 2015-09-23 06:53
    关注

    the page you call with AJAX (more or less) acts like a page visited by a browser. there is no hidden magic going on, it's an independent page you load.

    therefore you also have to care about database connections if you need them.

    评论

报告相同问题?