prepare("SELECT name FROM users WHERE id=:uid"); // to be replaced with optional user name off the user data table $statement->execute(array("uid"=>$_SESSION[user_id])); $dbentry = $statement->fetch(); $username = $dbentry[name]; } if (!$result) { $error_message = "Error: SQL error.\n" . $statement->queryString . "\n" . $statement->errorInfo()[2]; } $navbar = "home"; //ToDo: differentiate between home and userhome (or auto-redirect) ?> ThreadR %STYLESHEET% %NAVBAR%

ThreadR