prepare('SELECT name FROM users WHERE id = :user_id;'); // to be replaced with optional user name off the user data table $result = $statement->execute(array('user_id' => $_SESSION['user_id'])); $dbentry = $statement->fetch(); $username = $dbentry['name']; $navbar = "home"; //ToDo: differentiate between home and userhome (or auto-redirect) ?> ThreadR %NAVBAR%

ThreadR