久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

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

  • <tfoot id='yxC7K'></tfoot>
  • <legend id='yxC7K'><style id='yxC7K'><dir id='yxC7K'><q id='yxC7K'></q></dir></style></legend>

        <i id='yxC7K'><tr id='yxC7K'><dt id='yxC7K'><q id='yxC7K'><span id='yxC7K'><b id='yxC7K'><form id='yxC7K'><ins id='yxC7K'></ins><ul id='yxC7K'></ul><sub id='yxC7K'></sub></form><legend id='yxC7K'></legend><bdo id='yxC7K'><pre id='yxC7K'><center id='yxC7K'></center></pre></bdo></b><th id='yxC7K'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='yxC7K'><tfoot id='yxC7K'></tfoot><dl id='yxC7K'><fieldset id='yxC7K'></fieldset></dl></div>
        • <bdo id='yxC7K'></bdo><ul id='yxC7K'></ul>
      1. 調(diào)用未定義的方法 PDO::execute()

        Call to undefined method PDO::execute()(調(diào)用未定義的方法 PDO::execute())
          <bdo id='rLqLY'></bdo><ul id='rLqLY'></ul>
          <tfoot id='rLqLY'></tfoot>
        • <small id='rLqLY'></small><noframes id='rLqLY'>

            <tbody id='rLqLY'></tbody>
            <i id='rLqLY'><tr id='rLqLY'><dt id='rLqLY'><q id='rLqLY'><span id='rLqLY'><b id='rLqLY'><form id='rLqLY'><ins id='rLqLY'></ins><ul id='rLqLY'></ul><sub id='rLqLY'></sub></form><legend id='rLqLY'></legend><bdo id='rLqLY'><pre id='rLqLY'><center id='rLqLY'></center></pre></bdo></b><th id='rLqLY'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='rLqLY'><tfoot id='rLqLY'></tfoot><dl id='rLqLY'><fieldset id='rLqLY'></fieldset></dl></div>
              • <legend id='rLqLY'><style id='rLqLY'><dir id='rLqLY'><q id='rLqLY'></q></dir></style></legend>

                  本文介紹了調(diào)用未定義的方法 PDO::execute()的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

                  問(wèn)題描述

                  我正在嘗試對(duì)頁(yè)面登錄進(jìn)行編碼,但我被這個(gè)錯(cuò)誤阻止了

                  i'm trying to code a page login but i was stopper at this error

                  請(qǐng)告訴我這里的錯(cuò)誤

                  <?php
                  @session_start();
                  include("../../connexion/connexion.php");
                  class login_class {
                          public $user;
                          public $password;
                          public $connexion;
                      public function check_login() {
                          try {
                              $cn = new class_connect();
                              $this->connexion = $cn->connect(null);
                              $result = $this->connexion->execute("select * from user where username='$this->user' and password='$this->password'");
                  
                                          $data = $result->fetchAll(PDO::FETCH_OBJ);
                  
                  
                              if (!empty($data[0]->id_user)) {
                                  return true;
                              }else {
                                  return false;
                              }
                          }catch(PDOException $ex) {  
                              echo $ex->getMessage();
                          }
                      }
                      public function __construct($user) {
                          if($user){
                              $this->user = $user["username"];
                              $this->password = $user["password"];
                          }
                      }
                  
                  }
                  ?>
                  

                  推薦答案

                  ->execute() 用于準(zhǔn)備好的語(yǔ)句.例如

                  ->execute() is for prepared statements. e.g.

                  $stmt = $dbh->prepare('some query here');
                  $stmt->execute();
                  

                  您正在嘗試直接在主數(shù)據(jù)庫(kù)對(duì)象上執(zhí)行查詢.對(duì)于 PDO,這意味著

                  You're trying to execute a query directly on the main DB object. For PDO, that means

                   $dbh->exec('query goes here');
                  

                  您真的應(yīng)該查看準(zhǔn)備好的語(yǔ)句.您很容易受到SQL 注入攻擊的影響,而且由于您一開(kāi)始使用的是 PDO,因此基本上是不可原諒的不要編寫(xiě)安全的查詢.

                  You really should look into prepared statements. You're vulnerable to SQL injection attacks as is, and since you're using PDO to begin with, it's basically unforgivable to NOT be writing safe queries.

                  這篇關(guān)于調(diào)用未定義的方法 PDO::execute()的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來(lái)源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問(wèn)題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!

                  相關(guān)文檔推薦

                  MySQLi prepared statement amp; foreach loop(MySQLi準(zhǔn)備好的語(yǔ)句amp;foreach 循環(huán))
                  Is mysqli_insert_id() gets record from whole server or from same user?(mysqli_insert_id() 是從整個(gè)服務(wù)器還是從同一用戶獲取記錄?)
                  PHP MySQLi doesn#39;t recognize login info(PHP MySQLi 無(wú)法識(shí)別登錄信息)
                  mysqli_select_db() expects exactly 2 parameters(mysqli_select_db() 需要 2 個(gè)參數(shù))
                  Php mysql pdo query: fill up variable with query result(Php mysql pdo 查詢:用查詢結(jié)果填充變量)
                  MySQLI 28000/1045 Access denied for user #39;root#39;@#39;localhost#39;(MySQLI 28000/1045 用戶“root@“l(fā)ocalhost的訪問(wèn)被拒絕)
                      <tbody id='sVaMk'></tbody>

                    1. <small id='sVaMk'></small><noframes id='sVaMk'>

                      • <bdo id='sVaMk'></bdo><ul id='sVaMk'></ul>
                        <legend id='sVaMk'><style id='sVaMk'><dir id='sVaMk'><q id='sVaMk'></q></dir></style></legend>

                          <tfoot id='sVaMk'></tfoot>
                            <i id='sVaMk'><tr id='sVaMk'><dt id='sVaMk'><q id='sVaMk'><span id='sVaMk'><b id='sVaMk'><form id='sVaMk'><ins id='sVaMk'></ins><ul id='sVaMk'></ul><sub id='sVaMk'></sub></form><legend id='sVaMk'></legend><bdo id='sVaMk'><pre id='sVaMk'><center id='sVaMk'></center></pre></bdo></b><th id='sVaMk'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='sVaMk'><tfoot id='sVaMk'></tfoot><dl id='sVaMk'><fieldset id='sVaMk'></fieldset></dl></div>
                          • 主站蜘蛛池模板: 欧美在线日韩 | 尹人av| av国产精品 | 国产清纯白嫩初高生视频在线观看 | 伊人激情网 | 黑人巨大精品欧美一区二区免费 | 国产精品特级片 | 国产一区二区欧美 | 国产日韩欧美在线播放 | 亚洲欧洲在线视频 | 国产在线二区 | 国产成人网 | 特级黄一级播放 | 成人毛片网 | 久久综合久久自在自线精品自 | 黄色大片视频 | 久久久精品国产 | 欧美激情欧美激情在线五月 | 日韩精品一区二区三区在线观看 | 91麻豆精品国产91久久久资源速度 | 国产精品一区二 | 久久精品亚洲一区二区三区浴池 | 欧美视频网 | 久久久91| 久久se精品一区精品二区 | 中文字幕在线视频免费观看 | 亚洲视频在线一区 | 久久精品毛片 | 欧美黑人一级爽快片淫片高清 | 久久精品中文字幕 | 99久久夜色精品国产亚洲96 | 一本一道久久a久久精品综合蜜臀 | 一区二区在线观看免费视频 | 日韩中文字幕在线播放 | a爱视频 | 成人九区| 亚洲福利 | 中文字幕11页 | 婷婷福利| 欧美日韩精品中文字幕 | 欧美精品一区二区三区在线播放 |