in my code there is an error how to solve it : <p>What's wrong with my code</p>

<pre><code>&lt;?php 
session_start();
require_once('koneksi.php');
$username = $_POST['username'];
$pass = $_POST['password'];
$cekuser = mysqli_query($conn,"SELECT * FROM user WHERE username = '$username'");
$hasil = mysqli_fetch_array($cekuser);
if(mysqli_num_rows($cekuser) == 0) {
    echo "&lt;div align='center'&gt;Username Belum Terdaftar! &lt;a href='login.php'&gt;Back&lt;/a&gt;&lt;/div&gt;;
} else{
  if($pass&lt;&gt;$hasil['$username]'){
    echo "&lt;div align='center'&gt;Password Salah! &lt;a href='login.php'&gt;Back&lt;/a&gt;&lt;/div&gt;;
 }  else{
    $_SESSION['username']=$hasil['username'];
    header('location:index.php');
  }
}

?&gt;
</code></pre>

<p>I get an error message like this</p>

<p>Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting '-' or identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in /storage/emulated/0/htdocs/proseslogin.php on line 11</p>
