Po prostu dostosuj swój SELECT
zapytanie:
SELECT * FROM details WHERE date <= 'your-date-here' ORDER BY date DESC LIMIT 1
Po prostu dostosuj swój SELECT
zapytanie:
SELECT * FROM details WHERE date <= 'your-date-here' ORDER BY date DESC LIMIT 1