小编Jon*_*anz的帖子

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

我在这篇文章中收到错误:(抱歉我的英文不好,我来自德国!)

错误:Fatal error: Call to a member function bind_param() on a non-object in /users/ftf/www/ccache.php on line 44

来自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( …
Run Code Online (Sandbox Code Playgroud)

php mysqli sqlbindparameter

4
推荐指数
1
解决办法
2万
查看次数

标签 统计

mysqli ×1

php ×1

sqlbindparameter ×1