if (!$this->check_table_exists('users')) { require_once 'users.sql.php'; // Require SQL file try { $this->exec($sql1); } catch (PDOException $e) { if (DEBUG) { echo $e->getMessage(); } exit('Create Table Failed.'); } } else { $existing[] = 'users'; // die('User table already exists! Please remove the call to the method `create_user_table`.'); } // Here to allow for multiple create tables testing if (count($existing) > 0) { foreach ($existing as $exists) { echo "<pre>Table `{$exists}` already exists! Please remove the call to the method `create_user_table`.\n</pre>"; } exit; } return true; } } $user = new userAuth(); //$user->create_user_table(); //$user->create_user('foo', 'bar'); var_dump($user->is_logged_in()); //$user->user_logout(); //var_dump($user->user_login('foo', 'bar'));