I am loosing it a bit and cant think of this sql correctly
I have
tables: userid , counter , date and
I need to check how many files has user downloaded in last 24h , starting sql
SELECT SUM(counter) FROM download_log WHERE userid = 258 AND date = DATE(NOW())
but it is returning null , and I downloaded min 40 files ,
date format in date table is
2012-05-05 01:59:55
I also tried , date = NOW()
same thing what am i missing ?
thank you!