getMessage(); // Print out error message and exit exit(); } else { //$_SESSION['is_logged_in'] = 1; $db->setFetchMode(DB_FETCHMODE_ASSOC); } ?> cannot connect