I am stuck with this query , please tell me how to convert this query into codeigniter active record method
select * from view_log where user_id=XXXX and date(time) = curdate();
where time is a time stamp , so I want to extract date out of it and compare it with today's date. I have tried to use set but its not working, even passing it as a string is not working.