Hello. The site has the functionality of displaying registered users for TODAY, you still need to implement "yesterday."
How to do?
Today use this request
$command = "SELECT COUNT(uid) FROM users WHERE date>UNIX_TIMESTAMP(CURDATE())"; Hello. The site has the functionality of displaying registered users for TODAY, you still need to implement "yesterday."
How to do?
Today use this request
$command = "SELECT COUNT(uid) FROM users WHERE date>UNIX_TIMESTAMP(CURDATE())"; $command = "SELECT COUNT(uid) FROM users WHERE date BETWEEN UNIX_TIMESTAMP(SUBDATE(CURDATE(), 1) AND UNIX_TIMESTAMP(CURDATE())"; Source: https://ru.stackoverflow.com/questions/574702/
All Articles