Php 插入不工作的成员

Php 插入不工作的成员,php,sql,Php,Sql,我有一个脚本正在运行和工作,但是“插入到成员”部分不起作用: function register_member($username,$name,$email,$password) { $time = time(); $ip = get_ip(); db()->query("INSERT INTO members (full_name,username,email,password,ip_address,last_active,date_created,banned,active)VALUE

我有一个脚本正在运行和工作,但是“插入到成员”部分不起作用:

function register_member($username,$name,$email,$password) {
$time = time();
$ip = get_ip();
db()->query("INSERT INTO members (full_name,username,email,password,ip_address,last_active,date_created,banned,active)VALUES(?,?,?,?,?,?,?,?,?)",
    $name,$username,$email,$password, $ip, $time, $time,0,1);
//login user

login_user($username, $pass, false);

if (config('auto-follow', '')) {
    $users = explode(',', config('auto-follow'));
    foreach($users as $user){
        $user = get_user($user);
        if ($user) {
            follow($user['id']);
        }
    }
}
return true;
}


在我看来,它似乎无法读取db()->查询("插入到部分。当我删除该查询时,注册脚本可以完成对函数的读取,但如果我保留它,它将返回500个内部错误。有什么想法吗?

最终更改了php.ini,而错误发生在js脚本中。在这里的这一行:var json=jQuery.parseJSON(result)


请先打开错误报告,然后粘贴您收到的错误。您可以检查此问题以了解如何打开错误报告。有人建议您的
)值(
请尝试添加为:。
)值之间没有空格(
尝试在值中添加空格,但仍然没有成功。将尽快收集错误报告。.尝试添加htaccess错误报告,但它会给我一个500内部服务器错误。.我在Bitnami和google cloud上,运行lamp堆栈。因此我无法编辑php.ini。.最终更改了php.ini,错误发生在js脚本中我很高兴。
$(document).on("submit", "#signup-form", function() {
    $(".loader-container").fadeIn();
    $(this).ajaxSubmit({
        url : baseUrl + 'signup',
        success : function(result) {
            var json = jQuery.parseJSON(result);
            if (json.status == 1) {
                //we can redirect to the next destination
                window.location.href = json.url;
                notify(json.message, 'success');
            } else {
                notify(json.message, 'error');
                $(".loader-container").fadeOut();
            }
        }
    })
    return false;
});