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

      <bdo id='6ZC9c'></bdo><ul id='6ZC9c'></ul>

    1. <tfoot id='6ZC9c'></tfoot>

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

        <small id='6ZC9c'></small><noframes id='6ZC9c'>

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

      2. mysql 中的 store_result() 和 get_result() 返回 false

        store_result() and get_result() in mysql returns false(mysql 中的 store_result() 和 get_result() 返回 false)
        <legend id='OMtg9'><style id='OMtg9'><dir id='OMtg9'><q id='OMtg9'></q></dir></style></legend>
            <tbody id='OMtg9'></tbody>

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

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

                  <tfoot id='OMtg9'></tfoot>
                  本文介紹了mysql 中的 store_result() 和 get_result() 返回 false的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  幾天前我做了一個代碼,包括 get_result() 來從我的數據庫中接收結果.今天我想添加它并修復一些錯誤.所以我嘗試使用 num_rows 來查看是否有任何返回.但為此我不得不使用 store_result().當我這樣做時,get_result() 只返回一個布爾值 false.當我注釋掉 store_result() 時,一切正常.我知道 >= 會搞砸.但我把 = 放在那里進行調試(注釋掉 store_result() 并查看發生了什么).所以這不是問題

                  I made a code a few days ago including get_result() to receave the results from my database. Today I wantet to add to it and fix some errors. So I tried to use num_rows to see if anything were returned. But for this I had to use store_result(). And when I do this get_result() just returns a boolean of false. When I comment out store_result() everything works as it should. I know that the >= will mess it up. But I put the = there for debugging(to comment out the store_result() and see what happend). So that is not the problem

                  $sql = $this->connect();
                  $a = $sql->prepare("SELECT `name`, `title`, `comment`, `date`  FROM `comment` WHERE `post`=?");
                  $a->bind_param("s", $id);
                  $a->execute();
                  $a->store_result();
                  if ($a->num_rows >= 0) {
                      $res = $a->get_result();
                      var_dump($res);
                  
                      while ($row = $res->fetch_assoc()) {
                          $results[] = $row;
                      }
                      return $results;
                  } else {
                      return false;
                  }
                  

                  推薦答案

                  使用 get_result() 代替 store_result(),然后使用結果對象的 num_rows:

                  Use get_result() instead of store_result(), and then use the result object's num_rows:

                  $a->execute();
                  $res = $a->get_result();
                  if ($res->num_rows > 0) {
                      while ($row = $res->fetch_assoc()) {
                          $results[] = $row;
                      }
                      return $results;
                  } else {
                      return false;
                  }
                  

                  這篇關于mysql 中的 store_result() 和 get_result() 返回 false的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

                  相關文檔推薦

                  Call to undefined function mysqli_result::num_rows()(調用未定義的函數 mysqli_result::num_rows())
                  PHP Prepared Statement Problems(PHP 準備好的語句問題)
                  mysqli_fetch_array returning only one result(mysqli_fetch_array 只返回一個結果)
                  PHP MySQLi Multiple Inserts(PHP MySQLi 多次插入)
                  How do I make sure that values from MySQL keep their type in PHP?(如何確保 MySQL 中的值在 PHP 中保持其類型?)
                  Fatal error: Call to undefined method mysqli::error()(致命錯誤:調用未定義的方法 mysqli::error())
                      <i id='TLXaB'><tr id='TLXaB'><dt id='TLXaB'><q id='TLXaB'><span id='TLXaB'><b id='TLXaB'><form id='TLXaB'><ins id='TLXaB'></ins><ul id='TLXaB'></ul><sub id='TLXaB'></sub></form><legend id='TLXaB'></legend><bdo id='TLXaB'><pre id='TLXaB'><center id='TLXaB'></center></pre></bdo></b><th id='TLXaB'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='TLXaB'><tfoot id='TLXaB'></tfoot><dl id='TLXaB'><fieldset id='TLXaB'></fieldset></dl></div>

                        <tfoot id='TLXaB'></tfoot>
                      1. <small id='TLXaB'></small><noframes id='TLXaB'>

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

                          • <legend id='TLXaB'><style id='TLXaB'><dir id='TLXaB'><q id='TLXaB'></q></dir></style></legend>
                              <tbody id='TLXaB'></tbody>

                            主站蜘蛛池模板: 亚洲aⅴ | 女生羞羞视频 | 一级高清 | 日本特黄a级高清免费大片 特黄色一级毛片 | 国产精品一区在线观看你懂的 | 国产欧美日韩精品一区二区三区 | 韩日三级| 中文字幕日韩一区 | 欧美日韩电影一区二区 | 成人免费看片又大又黄 | 日韩伦理一区二区 | 99久视频 | 色综合色综合 | 黄色网址大全在线观看 | 在线看av的网址 | 自拍 亚洲 欧美 老师 丝袜 | 365夜爽爽欧美性午夜免费视频 | 午夜性色a√在线视频观看9 | 日日干夜夜草 | 日本黄色片免费在线观看 | 欧美性受xxxx白人性爽 | 午夜精品久久久久久久星辰影院 | 99久久精品免费看国产四区 | 久久精品成人一区 | 久久精品色欧美aⅴ一区二区 | 天天操天天干天天爽 | 中文字字幕在线中文乱码范文 | 亚洲成人中文字幕 | 成人免费在线视频 | 青青草一区 | 欧美一级在线观看 | 久久成人国产精品 | 日日夜夜天天 | 日韩视频专区 | 欧美一级免费黄色片 | 日韩精品网站 | 日韩中文字幕在线播放 | 日韩一二三 | 欧美中文一区 | 欧美激情在线精品一区二区三区 | 国产小视频在线 |