I have a table structure something like :
id | name | start_time | duration
1 xyz 05:00 PM 4
Code
$from_time=9:30 AM;
$sessionData=$this->db->where('start_time>=',$from_time)->get('user_session')->result();
In the above code i want end time calculated but i want endtime calculated from duration such as in my case for 5:00 pm endtime should be 9:00 pm. I want to select those rows only.