only month column in not 0 in php code example
Example 1: mysql select month and year
SELECT DATE_FORMAT(test_date,'%Y%m') AS date FROM test_table;
Example 2: mysql filter by date mount
SELECT *
FROM customers
WHERE birthday LIKE "2015/04/%";
SELECT DATE_FORMAT(test_date,'%Y%m') AS date FROM test_table;
SELECT *
FROM customers
WHERE birthday LIKE "2015/04/%";