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

      • <bdo id='WHeaj'></bdo><ul id='WHeaj'></ul>
      <tfoot id='WHeaj'></tfoot>
    1. <small id='WHeaj'></small><noframes id='WHeaj'>

    2. (致命错误:在非对象上调用成员函数 bind_param())

      时间:2023-07-29
    3. <tfoot id='g4YaE'></tfoot>
        <tbody id='g4YaE'></tbody>

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

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

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

              1. <legend id='g4YaE'><style id='g4YaE'><dir id='g4YaE'><q id='g4YaE'></q></dir></style></legend>
              2. 本文介绍了(致命错误:在非对象上调用成员函数 bind_param())的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                问题描述

                我收到此文本的错误:(对不起,我的英语不好,我来自德国!)

                I get an error with this text:(sorry for my bad english I am from germany!)

                错误:致命错误:在第 44 行的/users/ftf/www/ccache.php 中的非对象上调用成员函数 bind_param()

                来自 ccache.php 的部分代码

                A part of the Code from ccache.php

                     // Neues Datenbank-Objekt erzeugen
                    $db = @new mysqli( 'localhost', 'ftf', '***', 'ftf' );
                    // Pruefen ob die Datenbankverbindung hergestellt werden konnte
                    if (mysqli_connect_errno() == 0)
                    {
                        $sql = "INSERT INTO cache
                ('name', 'user', 'veroefentlichung', 'beschreibung', 'FTFcode', 'STFcode', 'TTFcode', 'type', 'lat', 'lon', 'address', 'link')
                VALUES ('?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?')";
                $eintrag = $db->stmt_init();
                $eintrag = $db->prepare( $sql );
                
                        $eintrag->bind_param($titel, $user, $datum, $desc, $FTF, $STF, $TTF, $type, $Lat, $Lon, $shortdesc, $genlink); // line 44
                
                        $eintrag->execute();
                        // Pruefen ob der Eintrag efolgreich war
                        if ($eintrag->affected_rows == 1)
                        {
                            echo 'Der neue Eintrage wurde hinzugef&uuml;gt.';
                        }
                        else
                        {
                            echo 'Der Eintrag konnte nicht hinzugef&uuml;gt werden.';
                        }
                    }
                

                推荐答案

                  $eintrag->bind_param($titel, $user, $datum, $desc, $FTF, $STF, $TTF, $type, $Lat, $Lon,       $shortdesc, $genlink); // line 44
                

                你需要这样定义参数的类型:

                You need to the define the type of parameters as this:

                $eintrag->bind_param("ssssssiiss", $titel, $user, $datum, $desc, $FTF, $STF, $TTF, $type, $Lat, $Lon, $shortdesc, $genlink); // line 44
                

                s - 字符串我 - 整数还要检查文档:http://php.net/manual/en/mysqli-stmt.bind-param.php

                s - string i - int Also check documentation: http://php.net/manual/en/mysqli-stmt.bind-param.php

                这篇关于(致命错误:在非对象上调用成员函数 bind_param())的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                上一篇:命令行 php mysqli 失败,但可通过 Web 服务器运行并 下一篇:使用 MySQLi 连接到多个数据库

                相关文章

                最新文章

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

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