View Single Post

   
  #1 (permalink)  
Old 03-04-2008, 07:24 AM
Slickuser
 
Posts: n/a
Default datetime manipulation

I have an id in mySQL server with format dateStart DATETIME (// YYYY-
MM-DD HH:MM:SS)

Now I want to sort the table by today and 1 week starting from now.
$today = date("Y-m-d h:i:s");

I am not sure how to achieve that, any help? thank you.
Reply With Quote