<small id='tH37V'></small><noframes id='tH37V'>

    1. <legend id='tH37V'><style id='tH37V'><dir id='tH37V'><q id='tH37V'></q></dir></style></legend>

      • <bdo id='tH37V'></bdo><ul id='tH37V'></ul>
    2. <tfoot id='tH37V'></tfoot>

      <i id='tH37V'><tr id='tH37V'><dt id='tH37V'><q id='tH37V'><span id='tH37V'><b id='tH37V'><form id='tH37V'><ins id='tH37V'></ins><ul id='tH37V'></ul><sub id='tH37V'></sub></form><legend id='tH37V'></legend><bdo id='tH37V'><pre id='tH37V'><center id='tH37V'></center></pre></bdo></b><th id='tH37V'></th></span></q></dt></tr></i><div id='tH37V'><tfoot id='tH37V'></tfoot><dl id='tH37V'><fieldset id='tH37V'></fieldset></dl></div>

      mysqli - 我真的需要做 $result->close();&amp;$mys

      时间:2023-07-29
      <tfoot id='ttzWo'></tfoot>
            <bdo id='ttzWo'></bdo><ul id='ttzWo'></ul>
              <tbody id='ttzWo'></tbody>
            <legend id='ttzWo'><style id='ttzWo'><dir id='ttzWo'><q id='ttzWo'></q></dir></style></legend>

            <small id='ttzWo'></small><noframes id='ttzWo'>

                <i id='ttzWo'><tr id='ttzWo'><dt id='ttzWo'><q id='ttzWo'><span id='ttzWo'><b id='ttzWo'><form id='ttzWo'><ins id='ttzWo'></ins><ul id='ttzWo'></ul><sub id='ttzWo'></sub></form><legend id='ttzWo'></legend><bdo id='ttzWo'><pre id='ttzWo'><center id='ttzWo'></center></pre></bdo></b><th id='ttzWo'></th></span></q></dt></tr></i><div id='ttzWo'><tfoot id='ttzWo'></tfoot><dl id='ttzWo'><fieldset id='ttzWo'></fieldset></dl></div>
                本文介绍了mysqli - 我真的需要做 $result->close();&amp;$mysqli->close();?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                问题描述

                刚开始使用mysqli.如果我在小型网站上使用小型数据集(流量方面),我真的需要一直使用这些吗?

                Just started using mysqli. If I'm working with small data sets on small websites (traffic-wise), do I really need to use these all the time?

                $result->close(); 
                $mysqli->close();
                

                另外,对于在没有框架的情况下进行自定义 PHP 和 MySQL 工作的人来说,mysqli 是与 MySQL 交互的一般首选方式吗?

                Also, for someone doing custom PHP and MySQL work without a framework, is mysqli the general preferred way of interacting with MySQL?

                推荐答案

                PHP 将在脚本结束时关闭所有打开的文件和数据库连接.完成连接后手动执行此操作是一种很好的做法,但如果不这样做也无济于事.如果您有一个将在整个脚本中使用的数据库连接,您也可以将其保持打开状态.

                PHP will close all open files and DB connections at the end of the script. It's good practice to do it manually when you are done with the connections, but it's no disaster if you don't. If you have a DB connection that will be used throughout the whole script you can as well leave it open.

                +1 对 PDO

                这篇关于mysqli - 我真的需要做 $result->close();&amp;$mysqli->close();?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                上一篇:警告:mysqli_query() 期望参数 1 为 mysqli,第 14 行 下一篇:新的 mysqli 与 mysqli_connect

                相关文章

                最新文章

                <legend id='8EiNR'><style id='8EiNR'><dir id='8EiNR'><q id='8EiNR'></q></dir></style></legend>

                <small id='8EiNR'></small><noframes id='8EiNR'>

                  <i id='8EiNR'><tr id='8EiNR'><dt id='8EiNR'><q id='8EiNR'><span id='8EiNR'><b id='8EiNR'><form id='8EiNR'><ins id='8EiNR'></ins><ul id='8EiNR'></ul><sub id='8EiNR'></sub></form><legend id='8EiNR'></legend><bdo id='8EiNR'><pre id='8EiNR'><center id='8EiNR'></center></pre></bdo></b><th id='8EiNR'></th></span></q></dt></tr></i><div id='8EiNR'><tfoot id='8EiNR'></tfoot><dl id='8EiNR'><fieldset id='8EiNR'></fieldset></dl></div>

                    <tfoot id='8EiNR'></tfoot>
                      <bdo id='8EiNR'></bdo><ul id='8EiNR'></ul>