<tfoot id='VEc1k'></tfoot>

  • <legend id='VEc1k'><style id='VEc1k'><dir id='VEc1k'><q id='VEc1k'></q></dir></style></legend>

  • <small id='VEc1k'></small><noframes id='VEc1k'>

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

        PDO 语句的转义参数?

        时间:2023-10-04
          <i id='J7y3N'><tr id='J7y3N'><dt id='J7y3N'><q id='J7y3N'><span id='J7y3N'><b id='J7y3N'><form id='J7y3N'><ins id='J7y3N'></ins><ul id='J7y3N'></ul><sub id='J7y3N'></sub></form><legend id='J7y3N'></legend><bdo id='J7y3N'><pre id='J7y3N'><center id='J7y3N'></center></pre></bdo></b><th id='J7y3N'></th></span></q></dt></tr></i><div id='J7y3N'><tfoot id='J7y3N'></tfoot><dl id='J7y3N'><fieldset id='J7y3N'></fieldset></dl></div>

          • <legend id='J7y3N'><style id='J7y3N'><dir id='J7y3N'><q id='J7y3N'></q></dir></style></legend>
            <tfoot id='J7y3N'></tfoot>
              <tbody id='J7y3N'></tbody>
              <bdo id='J7y3N'></bdo><ul id='J7y3N'></ul>
            • <small id='J7y3N'></small><noframes id='J7y3N'>

                  本文介绍了PDO 语句的转义参数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  PDO 新手 - 我是否需要转义我传递到 PDO 准备好的语句中的参数(例如以下):

                  New to PDO - do I need to escape arguments I'm passing into a PDO prepared statement (such as the following):

                  $_GET['name'] = "O'Brady";
                  
                  $sth = $dbh->prepare("INSERT INTO users SET name = :name");
                  $sth->bindParam(':name', $_GET['name']);
                  $sth->execute();
                  

                  推荐答案

                  没有.文本字符串周围也不需要任何引号.只需按原样传入变量,MySQL 驱动程序将负责其余的工作.

                  No. Neither do you need any quotation marks around text strings. Just pass in the variables as they are and the MySQL driver will take care of the rest.

                  这篇关于PDO 语句的转义参数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:使用 PDO 回显显示表中的所有行 下一篇:PHP 和 PDO 类问题

                  相关文章

                  最新文章

                      <tfoot id='j6wbh'></tfoot>

                        <bdo id='j6wbh'></bdo><ul id='j6wbh'></ul>

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

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

                      <legend id='j6wbh'><style id='j6wbh'><dir id='j6wbh'><q id='j6wbh'></q></dir></style></legend>