You need to define the username variable, you need to connect to database too.
If you are going to use mysqli, then it is better to use the object oriented style. Mysqli may not be the ideal solution, see this Cletus answer here: MySQL vs MySQLi when using PHP
You'll need to check php guide at php.net to learn the language, and make sure to check the comments. you can also google tutorials. if all fail, then stackoverflow will be the place to get help.
<?php
$username = trim($_POST['username']); //where username is a form field sent using post method, we trim it to remove white spaces so if user just enters spaces, the script will see it as empty string.
//Connect to database http://www.php.net/manual/en/mysqli.query.php
$conn = mysqli_connect("localhost", "my_user", "my_password", "yourdatabasename");
/* check connection */
if (mysqli_connect_errno()) {
printf("Connect failed: %s\n", mysqli_connect_error());
exit();
}
if ($username){
$username=mysqli_real_escape_string($conn, $username); //escape the string AFTER you connect http://www.php.net/manual/en/mysqli.real-escape-string.php
$get_user_content = mysqli_query($conn, "SELECT * FROM content WHERE UserName = '$username' LIMIT 1") or die(mysqli_error($conn)); //assuming you have table called content with a field called UserName to store the username, add limit 1 since you only need one anyway. , where does databaseaccess_error comes from? it's undefined. use mysqli_error
if(mysqli_num_rows($get_user_content) == 1 )
{
$row = mysqli_fetch_array($get_user_content);
$title = $row['utitle'];
$content = $row['ucontent'];
echo $title;
echo $content;
}else echo "User couldn't be found";
}