title: PHP - Compare Date to current
body: <p>I have following in the database</p>
  
  <pre><code>$checktime = mysql_query("SELECT * FROM drafts WHERE page='sched'");
  while($row = mysql_fetch_array($check)){
      if($row['posted'] = date('j-n-Y'))
      {
          echo "ok";
      }
  }
  </code></pre>
  
  <p>I'd like to compare this date against today's date. Please help me if everyone knows. thank you!</p>