title: Parse error: syntax error, unexpected $sql (T_VARIABLE)
body: <p>hoping for some help here... currently i am trying to figure out what's wrong with these codes, i am stuck here for 2 days, really appreciate any kind of help. i can't seem to detect my mistake, hope for sharp eyes here.</p>
  
  <p>am passing variables from android apps to php, in return the php script should return "success" or "fail"..</p>
  
  <p>but i got the above error on line 6, i do not understand why. hoping someone to point out my mistake. thanks a trillion...</p>
  
  <pre><code>&lt;?php
  define('HOST','myserver.mysql');
  define('USER','myserver_user');
  define('PASS','myserver_pass');
  define('DB','myserver_db');  
  
  $con = mysqli_connect(HOST,USER,PASS,DB) or die('Unable to Connect');
  
  $mobile1 = $_POST['mobile1'];
  $imei1 = $_POST['imei1'];
      
  $sql = "select status from phone where mobile1='$mobile1' and imei1='$imei1'";
   
  $res = mysqli_query($con,$sql);
   
  if(isset($check)){
      echo 'success';
  }else{
      echo 'fail';
  }
   
  mysqli_close($con);
  ?&gt;
  </code></pre>
  
  <p>please point out my mistake, please... thanks.</p>
  
  <p>this is the line that was pointed to.</p>
  
  <pre><code>$con = mysqli_connect(HOST,USER,PASS,DB) or die('Unable to Connect');
  </code></pre>
  
  <p>thanks.</p>