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

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

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

    <tfoot id='SAG7m'></tfoot>
      <legend id='SAG7m'><style id='SAG7m'><dir id='SAG7m'><q id='SAG7m'></q></dir></style></legend>

        • <bdo id='SAG7m'></bdo><ul id='SAG7m'></ul>

        在布爾值上調用成員函數 bind_param()

        Call to a member function bind_param() on boolean(在布爾值上調用成員函數 bind_param())

        <legend id='5K8sH'><style id='5K8sH'><dir id='5K8sH'><q id='5K8sH'></q></dir></style></legend>
      1. <small id='5K8sH'></small><noframes id='5K8sH'>

          <tbody id='5K8sH'></tbody>
        1. <tfoot id='5K8sH'></tfoot>

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

                1. 本文介紹了在布爾值上調用成員函數 bind_param()的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我嘗試在php中將參數綁定到sql(mysqli),但是出現上面寫的錯誤代碼.這是我寫的代碼:

                  I try to bind parameters to sql (mysqli) in php, but there is an error code as written above. This is the code I wrote:

                  $stmt = $conn->prepare("INSERT INTO assignments (Classes_has_Subjects_classesHasSubjectsId, assignmentName, gradeForAssignment,protectiveGrade) 
                                                    VALUES (?, ?, ?, ?)");
                  if ($stmt = false)
                  {
                      echo "false";
                  }
                  else{
                      $stmt->bind_param("sss", $classesHasSubjectsId, $assignmentName, $gradeForAssignment,  $protectiveGrade);
                      $stmt->execute();
                  }
                  

                  這里是錯誤信息:11

                  致命錯誤:在布爾值上調用成員函數 bind_param()

                  Fatal error: Call to a member function bind_param() on boolean in

                  怎么了?

                  推薦答案

                  <?php
                  $stmt = $conn->prepare("INSERT INTO assignments (Classes_has_Subjects_classesHasSubjectsId, assignmentName, gradeForAssignment,protectiveGrade) 
                                                    VALUES (?, ?, ?, ?)");
                      if (!$stmt) {
                          echo "false";
                      }
                      else {
                          $stmt->bind_param("ssss", $classesHasSubjectsId, $assignmentName, $gradeForAssignment,  $protectiveGrade);
                          $stmt->execute();
                      }
                  

                  if ($stmt = false) 表示您將 false 分配給 $stmt.將其替換為 if (!$stmt).

                  if ($stmt = false) means you're assigning false to $stmt. Replace it with if (!$stmt).

                  您綁定了 4 個參數,但只提供了 3 種類型的值.我在 bind_param 函數中添加了一個 s,假設您的所有值都是字符串.如果某些值是整數,則用 i 替換相應的 s.如果有雙打,替換為 d.

                  You're binding 4 parameters but only providing 3 types of values. I added a s in the bind_param function, assuming all your values are string. If some of the values are integers replace the corresponding s with an i. If there are doubles, replace with a d.

                  您確定 assignments 表中第一個字段的名稱是 Classes_has_Subjects_classesHasSubjectsId?

                  Are you sure the first field's name in the assignments table is Classes_has_Subjects_classesHasSubjectsId?

                  這篇關于在布爾值上調用成員函數 bind_param()的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

                  相關文檔推薦

                  Deadlock exception code for PHP, MySQL PDOException?(PHP、MySQL PDOException 的死鎖異常代碼?)
                  PHP PDO MySQL scrollable cursor doesn#39;t work(PHP PDO MySQL 可滾動游標不起作用)
                  PHP PDO ODBC connection(PHP PDO ODBC 連接)
                  Using PDO::FETCH_CLASS with Magic Methods(使用 PDO::FETCH_CLASS 和魔術方法)
                  php pdo get only one value from mysql; value that equals to variable(php pdo 只從 mysql 獲取一個值;等于變量的值)
                  MSSQL PDO could not find driver(MSSQL PDO 找不到驅動程序)
                    <tbody id='4IBEv'></tbody>

                2. <small id='4IBEv'></small><noframes id='4IBEv'>

                  • <bdo id='4IBEv'></bdo><ul id='4IBEv'></ul>

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

                            <i id='4IBEv'><tr id='4IBEv'><dt id='4IBEv'><q id='4IBEv'><span id='4IBEv'><b id='4IBEv'><form id='4IBEv'><ins id='4IBEv'></ins><ul id='4IBEv'></ul><sub id='4IBEv'></sub></form><legend id='4IBEv'></legend><bdo id='4IBEv'><pre id='4IBEv'><center id='4IBEv'></center></pre></bdo></b><th id='4IBEv'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='4IBEv'><tfoot id='4IBEv'></tfoot><dl id='4IBEv'><fieldset id='4IBEv'></fieldset></dl></div>
                            <tfoot id='4IBEv'></tfoot>
                            主站蜘蛛池模板: 国产精品视频一区二区三区不卡 | 久久国产精品久久久久 | 国产精品入口麻豆www | 福利视频亚洲 | 亚洲a视频| 天天干成人网 | 男女视频91 | 国产jizz女人多喷水99 | 亚洲视频一区在线观看 | 电影午夜精品一区二区三区 | 丝袜美腿一区 | 国产精品久久久久久久久久久免费看 | 日韩视频免费看 | 欧美色综合一区二区三区 | 人妖无码 | 国产福利资源 | 精品二区 | 在线观看日本高清二区 | 99久久精品一区二区毛片吞精 | 91成人在线 | 毛片一区二区三区 | 亚洲一区二区三区免费视频 | 国产精品久久久久久久白浊 | 国产精品免费看 | 精品国产一区二区三区性色av | 亚洲毛片网站 | 91精品国产综合久久久动漫日韩 | 亚洲美女视频 | 在线日韩av电影 | 亚洲视频中文字幕 | 日本精品视频一区二区 | 亚洲精品久久久久久久久久吃药 | 日韩av高清 | 人妖av| 超碰婷婷 | 国产精品久久久久久影院8一贰佰 | 成人久久一区 | 国产成人一区二区三区 | 久草在线中文888 | 日韩欧美在线观看一区 | 欧美激情精品久久久久 |