mysql query in php data current month code example
Example 1: this month mysql where
SELECT *
FROM table
WHERE MONTH(`columnName`) = MONTH(CURRENT_DATE());
Example 2: get month from database php
echo 'Day' . date('d', strtotime($row['Date']));
echo 'Month' . date('m', strtotime($row['Date']));
echo 'Year' . date('Y', strtotime($row['Date']));