title: Parse error: syntax error, unexpected '$result' (T_VARIABLE) in C:\xampp\htdocs\login.php on line 6
body: <p>My php code is</p>
  
  <pre><code>&lt;?php
  require "conn.php";
  $user_name = "";
  $user_pass = "";
  $mysql_qry = "select * from logindetails where User_id like '$user_name' and 
  Password '$user_pass';"
  $result = mysqli_query($conn ,$mysql_qry);
  if(mysqli_num_rows($result) &gt; 0){
  echo "login success";
  }
  else{
  echo "login not success";
  }
  ?&gt;
  </code></pre>
  
  <p>error is Parse error: syntax error, unexpected '$result' (T_VARIABLE) in C:\xampp\htdocs\login.php on line 6</p>