I am trying to get the totaal amount of registerd users per day. At the moment i am using this
$sql = \"SELECT name, email FROM users WHERE DATE_SUB(NOW(), I
I think you need
SELECT name, email FROM users WHERE DATE(lastModified) = DATE( NOW() )
This effectively "rounds to the date only" and will therefore only match records "since midnight".