title: Change my WHERE query depend on what day it is
body: <p>I wonder if its possible to use my $today in WHERE query.
  If $today is Monday, i want my WHERE to be p650Wdat = 1 (1 stands for monday)
  And and tuesday will be 2 and so on.</p>
  
  <pre><code>$today = date("l");
  &lt;?php
  $today = date("l");
  //Establish connection to database
  $host = "randomtext";
  $conn = myacc");
  $query = " Select * 
  from P660F
  where p660WDAT = $today
  ORDER BY P660PRIO DESC";
  ?&gt;
  </code></pre>