connect_errno){ die ('Unable to connect to database [' . $db->connect_errno . ']'); } if (!$userid){ echo '