Hi,
I am querying the db to pull out all the actions.
<?php
$query = "SELECT * FROM `actions`";
?>
Works great. But, how could I change (add) my WHERE clause to only pull out actions where the date column is today OR in the future, but not yet passed?
<?php
$query = "SELECT * FROM `actions` WHERE `action_start_date` >= now()"; // ?
?>
The action_start_date
is the content type: date, and has records stored like: 2006-03-01
I searched MySQL date functions, but couldn't figure it out. Any help or guidance would be appreciated.