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

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

  1. <legend id='duwje'><style id='duwje'><dir id='duwje'><q id='duwje'></q></dir></style></legend>
  2. <small id='duwje'></small><noframes id='duwje'>

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

      PHP 和 MySQLi - 無法通過引用傳遞參數 2

      PHP and MySQLi - Cannot pass parameter 2 by reference in(PHP 和 MySQLi - 無法通過引用傳遞參數 2)
        <tbody id='K1szJ'></tbody>
      <tfoot id='K1szJ'></tfoot>
        <bdo id='K1szJ'></bdo><ul id='K1szJ'></ul>
      • <small id='K1szJ'></small><noframes id='K1szJ'>

        <i id='K1szJ'><tr id='K1szJ'><dt id='K1szJ'><q id='K1szJ'><span id='K1szJ'><b id='K1szJ'><form id='K1szJ'><ins id='K1szJ'></ins><ul id='K1szJ'></ul><sub id='K1szJ'></sub></form><legend id='K1szJ'></legend><bdo id='K1szJ'><pre id='K1szJ'><center id='K1szJ'></center></pre></bdo></b><th id='K1szJ'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='K1szJ'><tfoot id='K1szJ'></tfoot><dl id='K1szJ'><fieldset id='K1szJ'></fieldset></dl></div>
              <legend id='K1szJ'><style id='K1szJ'><dir id='K1szJ'><q id='K1szJ'></q></dir></style></legend>
              • 本文介紹了PHP 和 MySQLi - 無法通過引用傳遞參數 2的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                我正在嘗試創建一個函數來檢查更新并插入一些數據,但我在第一步中遇到了一個問題,其中 $stmt->bind_param 表示不是通過引用或類似方式傳遞參數.

                I am trying to make a function which will check update and insert some data but I am having an issue in the first step where the $stmt->bind_param is saying that is not passing parameters by reference or something like that.

                我在下面附上了功能代碼:

                I have attached below the function code:

                public function killTarget($killerid,$victimiid,$victimcode)
                    {
                
                        if ($this->checkUsercode($victimcode,$victimiid))
                        {
                            $stmt = $this->_db->prepare("UPDATE users SET status =? WHERE user_id =?");
                            $stmt->bind_param("ii",0,$victimiid);
                
                            if ($stmt->execute())
                            {
                                $stmt->store_result();
                                $stmt->fetch();
                
                                $stmt = $this->_db->prepare("SELECT victim_id FROM target WHERE killer_id = ?");
                                $stmt->bind_param("i",$victimiid);
                
                                if ($stmt->execute())
                                {
                                    $stmt->store_result();
                                    $stmt->bind_result($targetid);
                                    $stmt->fetch();
                
                                    $stmt = $this->_db->prepare("INSERT INTO target (killer_id, victim_id) VALUES (?,?)");
                                    $stmt->bind_param("ii",$killerid,$targetid);
                
                                    if ($stmt->execute())
                                    {
                                        $stmt->store_result();
                                        $stmt->fetch();
                                        $stmt->close();
                                    }
                                }
                            }
                            else
                            {
                                Main::setMessage("targets.php",$this->_db->error,"alert-error");
                            }
                        }
                
                    }
                

                推薦答案

                不能在mysqli中這樣做:

                You cannot do this in mysqli:

                $stmt->bind_param("ii",0,$victimiid);
                

                0 需要是一個變量.

                試試這個:

                $zero = 0;
                $stmt->bind_param("ii",$zero,$victimiid);
                

                這篇關于PHP 和 MySQLi - 無法通過引用傳遞參數 2的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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 中保持其類型?)

                  <tbody id='wtHnF'></tbody>

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

                <tfoot id='wtHnF'></tfoot>

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

                          主站蜘蛛池模板: 国产精品久久久一区二区三区 | 欧美一区二区在线播放 | 久久精品色视频 | 理论片87福利理论电影 | 污视频在线免费观看 | 激情五月综合 | 久久免费精品视频 | 国产亚洲欧美在线 | 午夜精品久久久 | 综合久久亚洲 | 久久亚洲精品国产精品紫薇 | 涩涩视频网站在线观看 | 精产国产伦理一二三区 | 国产精品久久久久久久久久久久 | 久久精品91久久久久久再现 | 精品久久久久久久久亚洲 | 成人永久免费 | 欧美日韩中文在线 | 久久精品国产一区二区三区不卡 | 成人午夜免费网站 | 久久精品 | 好婷婷网| 中文字幕av亚洲精品一部二部 | 久久成人免费视频 | 亚洲精品小视频在线观看 | 久久精品视频免费观看 | 亚洲精品在线91 | 高清一区二区三区 | 黄a免费网络| 狠狠操狠狠操 | 成人日b视频 | 激情免费视频 | 一级片视频免费 | 在线国产一区二区三区 | 91资源在线| 亚洲高清视频在线 | 亚洲精品久久久久久久久久久 | 欧美福利影院 | 日韩精品免费看 | 色偷偷噜噜噜亚洲男人 | 午夜私人影院在线观看 |