title: SELECT ... LIMIT 0,1 syntax error
body: <pre><code>    for($nr = 0; $nr &lt; 2; $nr++){
  
          print $nr; print(gettype($nr));   // prints 0integer 
  
          $result = mysqli_query($con,"SELECT * FROM phcdl_files 
          ORDER BY file_id DESC LIMIT '$nr',1") 
          or die(mysqli_error($con));
      }
  </code></pre>
  
  <p>Trying to run the query above but I'm having troubles because of syntax.
  Running it on PhpMyAdmin with Limit 0,1 works good however</p>
  
  <p>Any idea what's the problem?</p>