sql deki where kısmı
To_DAYS(NOW()) - TO_DAYS( haberler.date) <= $gun_sayısı
haberler.date te datetime