SQL Query SELECT,ORDER date
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 date=date("Y-m-d")
and the date that bigger from the date of today.
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.
$r = mysql_query("SELECT date FROM yoman ORDER BY date ASC,time ASC ")
or die(mysql_error());
I hope you will unserstand, http://attiatech.com/projects/tours/index.php?db=cmVsXzIwMTI= 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.