Du kan bestille efter datofeltet i din database. For de ældste:
SELECT * FROM table WHERE condition ORDER BY dateField ASC LIMIT 1
For to ældste:
SELECT * FROM table WHERE condition ORDER BY dateField ASC LIMIT 2
osv, osv, ...
Du kan bestille efter datofeltet i din database. For de ældste:
SELECT * FROM table WHERE condition ORDER BY dateField ASC LIMIT 1
For to ældste:
SELECT * FROM table WHERE condition ORDER BY dateField ASC LIMIT 2
osv, osv, ...