title: Parse error: syntax error, unexpected '$password' (T_VARIABLE) Line 4
body: <p>I was trying to create a simple login in html using phpmyadmin database and xampp server but then this error shows *Parse error: syntax error, unexpected '$password' (T_VARIABLE) * </p>
  
  <p>Here's my code. </p>
  
  <pre><code>&lt;?php
  
  $username = $_POST['user']
  //*here's the Erro// $password = $_POST['pass']
  
  $username = stripcslashes($username);
  $password = stripcslashes($password);
  $username = mysql_real_escape_string($username);
  $password = mysql_real_escape_string($password);
  
  mysql_connect("localhost", "root", "");
  mysql_select_db("Login");
  
  $result = mysql_query("select * from users where username = '$username' and password = '$password'") or die("Failed to query Database".mysql_error());
  
  $row = mysql_fecth_array($result);
  
  if ($row['username'] == $username &amp;&amp; $row['password'] == $password ){
      echo "Login Succesful! Welcome" =.$row['username'];
  }else {
      echo "Login Failed"
  }
  
  ?&gt;
  </code></pre>