title: SQL Query SELECT,ORDER
body: <p><strong>SQL Query SELECT,ORDER date</strong> </p>
  
  <p>Hi, I need to select the date from my table, the problem is that I have above 130 rows and it will grow every day. I want to short it and in the query to select the date that equal for today <code>date=date("Y-m-d")</code> and the date that bigger from the date of today.</p>
  
  <p>It can be a variable the date of today because I'm using a date selection to paginated between the dates. I know I can use timestamp but I dont know how to implement it in the query.</p>
  
  <pre><code>  $r = mysql_query("SELECT  date FROM yoman  ORDER BY date ASC,time ASC  ") 
              or die(mysql_error()); 
  </code></pre>
  
  <p>I hope you will unserstand, <a href="http://attiatech.com/projects/tours/index.php?db=cmVsXzIwMTI=" rel="nofollow">http://attiatech.com/projects/tours/index.php?db=cmVsXzIwMTI=</a> this is the link, try to pick the 1.10.2012 and see how many rows are printed, i have the second option of view paginated but i want in this query to filter it too.</p>