Categorias
iiiiii
mysql registros por año
Descripcion
traer los registros en todo el año actual fecha.
php
SELECT
month(fecha) as mes,
MonthName(fecha) as nombre_mes,
count(*) as cantidad
from prospectos
where estado='1'
and year(fecha) = year(curdate())
group by month(fecha)
ORDER BY mes ASC