title: Who to verify date on sql request
body: <p>I have a problem with my script, when I try :</p>
  <pre><code>$sql = &quot;SELECT * FROM logs WHERE time_activation!= '2022-03-20'&quot;;
  </code></pre>
  <p>It's works !But if I use a variable, it doesn't work :</p>
  <pre><code>$today = date(&quot;Y-m-d&quot;);
  $sql = &quot;SELECT * FROM logs WHERE time_activation!= $today&quot;;
  </code></pre>
  <p>I have try this :</p>
  <pre><code>$sql = &quot;SELECT * FROM logs WHERE time_activation!= `$today`&quot;;
  </code></pre>
  <p>and this :</p>
  <pre><code>$sql = &quot;SELECT * FROM logs WHERE time_activation!= #$today#&quot;;
  </code></pre>
  <p>Nothing works :( could you help me please</p>