title: Why my "where condition" with numeric is not working?
body: <p>I'm working with php5+ and MySQL.</p>
  
  <p>I can't figure out why my operation is not working :</p>
  
  <pre><code>$prepare = $bbd-&gt;prepare('SELECT cm.cm_values FROM c_metas as cm WHERE cm.cm_name = "inscription" AND cm.cm_values &gt; :specific_date');
  $prepare-&gt;execute(array(':specific_date' =&gt; $date));
  </code></pre>
  
  <p>With a fetchAll, this gives me ALL entries with "inscription" in cm_name.
  On the other hand :</p>
  
  <pre><code>$prepare = $bbd-&gt;prepare('SELECT cm.cm_values FROM c_metas as cm WHERE cm.cm_name = "inscription" AND cm.cm_values &gt; '.$date.' ');
  $prepare-&gt;execute();
  </code></pre>
  
  <p>Perfectly returns entries with "inscription" in cm_name and with a "cm_values" superior to $date...</p>
  
  <p>I can't figure out what am I doing wrong ?</p>
  
  <p>Thx for your help, and forgive my english...</p>
  
  <p><strong>Edit :</strong> I'm using timestamp to store dates, so $date is numerical.</p>
  
  <p><strong>Edit again :</strong> as said in comments, there's a trouble with the format of my param. Something like</p>
  
  <pre><code>$prepare = $bbd-&gt;prepare('SELECT cm.cm_values FROM c_metas as cm WHERE cm.cm_name = "inscription" AND cm.cm_values &gt; :specific_date');
  $prepare-&gt;bindParam(':specific_date', $date, PDO::PARAM_INT);
  $prepare-&gt;execute();
  </code></pre>
  
  <p>works... So I now have to get how to make it works in the execute()...</p>