title: PDO bind data type and comparison
body: <p>I have an integer column in a table and when I do a comparison the following code seems to work.</p>
  
  <pre><code>$myLimit = 10;
  $sth = $db-&gt;prepare("SELECT * FROM table WHERE number&lt;:myLimit");
  $sth-&gt;bindParam(':myLimit',$myLimit); // default datatype is PDO::PARAM_STR
  $sth-&gt;execute();
  $result = $sth-&gt;fetchAll();
  </code></pre>
  
  <p>Should I be using PDO::PARAM_INT for the third parameter for bindParam?
  Also what about real numbers I can't use PDO::PARAM_INT for them as it will round them.</p>