You need to watch your quoting around string literals. There must be a closing quote of the same type (single or double) for each opening quote. If not, the PHP parser thinks any characters that follow are still part of the string literal. Unlike HTML, which often lets you "get away" with invalid syntax, you must be precisely correct with your syntax in a programming language.
if (isset($_SESSION[id])) {
//Put stored session variable into local php variable
$useris = $_SESSION[id];
$username = $_SESSION[username];
// need to make sure all quotes balanced out here:
$toplinks = '<a href="member_profile.php?id=' . $userid . '">' . $username . '</a> •
<a href=hcrindienetwork/database/member_account.php>Account</a> &bull';
} else {
// you misspelled "$toplinks" here, and did not have *any* quotes
$toplinks = '<a href="hcrindienetwork/database/join_form.php">Register</a> • <a href="login.php">Login</a>';
}