Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $g = $this->User->Download->find('first', array(
- 'fields' => array('COUNT(Download.id) AS today'),
- 'conditions' =>
- array(
- 'Download.user_id' => $this->Auth->user('id'),
- 'DATE_SUB(CURDATE(), INTERVAL 24 HOUR) >= Download.created'
- )
- ));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement