调用成员函数bind_param()

时间:2015-01-02 12:35:04

标签: php login

我下载了此登录系统,我需要删除displayname字段并验证密码字段。我浏览了所有PHP文件并删除了它们的代码,现在我收到了这个错误:

Fatal error: Call to a member function bind_param() on a non-object in /home/***/public_html/private/models/class.newuser.php on line 131

这是我的代码(第131行是此代码的第一行): 代码:

$stmt->bind_param("sssssi", $this->username, $secure_pass, $this->clean_email, $this->activation_token, $this->user_active);
                $stmt->execute();
                $inserted_id = $mysqli->insert_id;
                $stmt->close();

                //Insert default permission into matches table
                $stmt = $mysqli->prepare("INSERT INTO ".$db_table_prefix."user_permission_matches  (
                    user_id,
                    permission_id
                    )
                    VALUES (
                    ?,
                    '1'
                    )") ;


                $stmt->bind_param("s", $inserted_id);
                $stmt->execute();
                $stmt->close();

由于

0 个答案:

没有答案