Any idea why I am receiving the above error message on the following line:
$name_check = $db_object->query("SELECT username FROM users2 WHERE username = '".$_POST['uname']."'");
Sounds like you didn't create that object.