I have a Date type in my MySQL table - I'm trying to do a query on all
rows within the last 30 days based on that Date field - I'm having
trouble figuring out how to form the query???
$php_SQL = "SELECT * FROM basics WHERE creation_date =
DATE_ADD(creati on_date, INTERVAL -30 DAY)";
....doesn't do anything...
Thanks for any help.
rows within the last 30 days based on that Date field - I'm having
trouble figuring out how to form the query???
$php_SQL = "SELECT * FROM basics WHERE creation_date =
DATE_ADD(creati on_date, INTERVAL -30 DAY)";
....doesn't do anything...
Thanks for any help.
Comment