Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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'");
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #codeigniter #db
ADD COMMENT
Topic
Name
2+3 =