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 = "profile"; ?> ThreadR - Profile %STYLESHEET% %NAVBAR%

ThreadR

%BANNER_COOKIES%