I'd like to show records of the current month May 2014, I'm trying to pull a record with the following query
SELECT * FROM table1 WHERE DateTime > (CURDATE() - INTERVAL 1 MONTH)
tried the query on display records using php and query it on mysql (phpmyadmin) but yields wrong records because it shows the last month's record, which is april
Maybe the query is wrong, any ideas? suggestions?