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

  • <legend id='5zAbG'><style id='5zAbG'><dir id='5zAbG'><q id='5zAbG'></q></dir></style></legend>

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

      <small id='5zAbG'></small><noframes id='5zAbG'>

      <tfoot id='5zAbG'></tfoot>

          <bdo id='5zAbG'></bdo><ul id='5zAbG'></ul>

        綁定布爾值的 bind_param 問題

        bind_param problem with binding boolean values(綁定布爾值的 bind_param 問題)
      1. <tfoot id='xzU07'></tfoot>
          <bdo id='xzU07'></bdo><ul id='xzU07'></ul>

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

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

                <tbody id='xzU07'></tbody>
              <legend id='xzU07'><style id='xzU07'><dir id='xzU07'><q id='xzU07'></q></dir></style></legend>
                1. 本文介紹了綁定布爾值的 bind_param 問題的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我在 PHP5 中使用 mysqli_stmt::bind_param 綁定布爾值時遇到問題.

                  I have a problem binding booleans using mysqli_stmt::bind_param in PHP5.

                  SQL 查詢如下:

                  insert into `nvp_notes` (subject,messageid,receivedate,read) values (?,?,?,?)
                  

                  其中 'read' 是一個 tinyint,可以是 0 或 1,因為我在使用 mysqli 時遇到了 bit 問題.所以我在 bind_param 中列出的類型是:

                  Where 'read' is a tinyint, either 0 or 1, as I've had issues with bit using mysqli. So the types that I list in bind_param are:

                  $stmt->bind_param('sdsd', ...);
                  

                  我也試過 'sdsb' 和 'sdss' 但似乎沒有任何效果,我總是收到消息:

                  I've also tried 'sdsb' and 'sdss' but nothing seems to work, and I always get the message:

                  警告:mysqli_stmt::bind_param(): 變量數與準備語句中的參數數不匹配

                  Warning: mysqli_stmt::bind_param(): Number of variables doesn't match number of parameters in prepared statement

                  當我刪除語句中的讀取字段時,一切正常.我已經用完了這個想法.bind_param 肯定適用于布爾值嗎?

                  When I remove the read field in the statement everything works fine. I've run out of ideas with this one. Surely bind_param works with booleans?

                  推薦答案

                  您可以使用 intval 將布爾值轉換為 1 或 0()(或者用 (int)(integer) 來轉換).根據 mysqli_stmt::bind_param() 的文檔,您可以綁定的唯一類型是整數、雙精度數、字符串和 blob.

                  You could convert the boolean to a 1 or 0 using intval() (or cast it with (int) or (integer)). According to mysqli_stmt::bind_param()'s documentation, the only types you may bind are ints, doubles, strings, and blobs.

                  這篇關于綁定布爾值的 bind_param 問題的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

                  相關文檔推薦

                  store_result() and get_result() in mysql returns false(mysql 中的 store_result() 和 get_result() 返回 false)
                  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 中保持其類型?)

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

                    <tbody id='v37RN'></tbody>
                      • <bdo id='v37RN'></bdo><ul id='v37RN'></ul>

                          • <i id='v37RN'><tr id='v37RN'><dt id='v37RN'><q id='v37RN'><span id='v37RN'><b id='v37RN'><form id='v37RN'><ins id='v37RN'></ins><ul id='v37RN'></ul><sub id='v37RN'></sub></form><legend id='v37RN'></legend><bdo id='v37RN'><pre id='v37RN'><center id='v37RN'></center></pre></bdo></b><th id='v37RN'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='v37RN'><tfoot id='v37RN'></tfoot><dl id='v37RN'><fieldset id='v37RN'></fieldset></dl></div>
                          • <legend id='v37RN'><style id='v37RN'><dir id='v37RN'><q id='v37RN'></q></dir></style></legend>
                          • <tfoot id='v37RN'></tfoot>
                            主站蜘蛛池模板: 欧美精品乱码99久久影院 | www.欧美.com| 青草福利 | av在线播放一区二区 | 天天色天天射天天干 | 成人免费观看男女羞羞视频 | 欧美性大战久久久久久久蜜臀 | 午夜影院在线 | 成人在线视频网站 | 国产精品99一区二区 | 亚洲一区二区三区四区五区中文 | 91久久精品国产 | 久久久这里只有17精品 | 欧美一级毛片免费观看 | 日韩福利电影 | 国产一区二区三区 | 欧美日韩精品一区二区三区四区 | 国产在线拍偷自揄拍视频 | 成人在线a | 女同久久另类99精品国产 | 日本在线你懂的 | 日韩不卡一区二区 | 久久99国产精一区二区三区 | 欧美性猛交一区二区三区精品 | 成人免费在线 | 日韩三 | 亚洲视频中文字幕 | 亚洲成人精品视频 | 少妇精品亚洲一区二区成人 | 午夜精品一区二区三区免费视频 | 国产精品久久久久久久久久久新郎 | 99精品热视频| 毛片免费视频 | 人人爽日日躁夜夜躁尤物 | 久久久一区二区 | 色av一区| a级毛片毛片免费观看久潮喷 | 天天操天天射综合 | 亚洲狠狠丁香婷婷综合久久久 | 国产精品免费一区二区三区 | 国产成人免费视频网站高清观看视频 |