Answers for "between query in codeigniter"

PHP
0

codeigniter db where between

$minvalue = '2020-01-01 00:00:00';
$max_value = '2050-12-31 23:59:59';
$this->db->where("date_field BETWEEN '$minvalue' AND '$maxvalue'");
Posted by: Guest on September-04-2020
0

date between query in codeigniter

$this->db->where('sell_date BETWEEN "'. date('Y-m-d', strtotime($start_date)). '" and "'. date('Y-m-d', strtotime($end_date)).'"');
Posted by: Guest on August-05-2020

Browse Popular Code Answers by Language