title: How can I retrieve data from the database when the date > now()
body: <p>My purpose is since the time I login my page, I want my web to show how many updated data in the database. My code is like this</p>
  
  <pre><code>$current = $_SESSION['date'];
  $query2 = "SELECT * FROM gmaptracker1 WHERE datetime &gt;= '$current'";
  </code></pre>
  
  <p>When I echo the <code>$current</code>, it showed <code>27/09/14 : 06:53:24</code>, so the <code>$current</code> is correct, however, when I request the number of database where <code>date&gt;='$current'</code>, I get zero, although I have inserted to the database the data with datetime <code>28/09/14 : 06:53:24</code> and <code>29/09/14 : 06:53:24</code>. </p>
  
  <p>Can anyone help me to get out of this, please?</p>