Welcome Guest, Not a member yet? Register   Sign In
How to retrieve hours for specific dates in CodeIgniter?
#2

(This post was last modified: 06-16-2023, 08:52 AM by JustJohnQ.)

When is 2021-05-01 >= 2021-05-31??
You should use 2 where:
First one ‘data >= 2023-05-01’
Second one ‘data <= 2023-05-31’


PHP Code:
$this->db->where('table_data >=''2021-05-01');
$this->db->where('table_data <=''2023-05-31'); 
Reply


Messages In This Thread
RE: How to retrieve hours for specific dates in CodeIgniter? - by JustJohnQ - 06-16-2023, 07:36 AM



Theme © iAndrew 2016 - Forum software by © MyBB