Jump to content


Fatal Error help..

  • Please log in to reply
No replies to this topic

#1 MxpUnk

  • Members
  • PipPip
  • Member
  • 14 posts

Posted 09 March 2006 - 03:22 AM

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:
$name_check = $db_object->query("SELECT username FROM members WHERE username = '".$_POST['username']."'");
if (DB::isError($name_check)) {
$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.');

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users