Hi there,
Is there a way to write a MySQL query to get records by monthly for example:
Starting from the current month:
----- August -----
Record 1
Record 2
----- July-----
Record 1
Record 2
----- June -----
Record 1
Record 2
I have a time stamp column in my db table.
I can get all the records for the current month, using the month function, for a example:
Code:SELECT name, id, dob FROM users WHERE MONTH(regd) = MONTH(CURDATE())
thanks...


Reply With Quote
Bookmarks