Jump to content

Fatal Error help..


MxpUnk

Recommended Posts

Hey everyone, i'm re-coding a register page, and i've run into this error:

Fatal error: Call to a member function on a non-object in /home/cjnalsn1/public_html/site/register.php on line 11

and i went to find it on line 11, and saw the error, so I fixed it so it would connect right, but i am still getting the same error. Anyone know?

lines that its saying the error is on:
[code]
}
$name_check = $db_object->query("SELECT username FROM members WHERE username = '".$_POST['username']."'");
if (DB::isError($name_check)) {
        die($name_check->getMessage());
    }
$name_checkk = $name_check->numRows();
    if ($name_checkk != 0) {
        die('Sorry, the username: <strong>'.$_POST['username'].'</strong> is already in use, please choose a new username, and try again.');
    }[/code]


Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.