1
Hello I needed to do a query that returns the values of only the last 24h
i have the following query:
$date = date("Y-m-d H:i:s");
$this->db->select('*');
$this->db->from('inscricoes');
$this->db->where('data <', $date);
$this->db->where('data >', $date-1);
$query = $this->db->get();
but is returning all values
Two Where? is conflict, make 1 variable to join text Where blablabla and then
$this->db->where(variavel);
– KingRider