I have to following code to retrieve rows with timestamp of today:
$interactives_presented_today = $this->find('count',
array('conditions' => array( 'Tbsession.timestamp LIKE' => date("Y-m-d") . "%",
'Tbsession.action LIKE' => "%Interactive",
'Tbsession.username' => $user_id,
) )
);
Now, I want to retrieve rows with timestamp of this month. Any ideas? Thanks a lot for any help! 🙂
1 Answer