title: DATE() sql not working from php
body: <p>I'm using this query in phpmyadmin and work perfect</p>
  
  <pre><code>UPDATE TABLE SET DETALLE = 'PENDING FOR TODAY' where DATE(FECHA) = DATE(NOW());
  </code></pre>
  
  <p>but if I do the same from PHP </p>
  
  <pre><code>$sql= "UPDATE TABLE SET DETALLE = 'PENDING FOR TODAY' 
  where DATE(FECHA) = DATE(NOW())
  $resultado = mysql_query($sql) or die ("error");
  </code></pre>
  
  <p>Is not doing anything, if any problem with DATE() from php?</p>