I am working on stock project in PHP.Currently while searching according date it i
Just tweak your SELECT query:
SELECT
SELECT * FROM details WHERE date <= 'your-date-here' ORDER BY date DESC LIMIT 1
You might use something like this
date('Y-m-d', strtotime("23.12.2015")); // o/p: 2015-12-23
Where 'Y-m-d' format you stored in DB.
Refer date format here