Search
 
SCRIPT & CODE EXAMPLE
 

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'");
Comment

PREVIOUS NEXT
Code Example
Php :: get acf repeater field 
Php :: how to allow cors through header in php 
Php :: redirect in codeigniter 
Php :: cast array to object php 
Php :: convert timestamp to date in laravel 
Php :: max execution time exceeded php 
Php :: php change sting to caps 
Php :: php get first character of string 
Php :: string to float php 
Php :: change php max upload size 
Php :: date_default_timezone_set for india in php 
Php :: how to connect to a database in php 
Php :: php remove first and last char 
Php :: how to set field type of date of birth in laravel 
Php :: carbon date from format 
Php :: laravel delete confirm link 
Php :: php convert unix time to date 
Php :: php word wrap 
Php :: check exist string in string php 
Php :: wordpress add class on navigation menu 
Php :: get template part pass variable 
Php :: php bbcode tag dellete 
Php :: counting a string in php 
Php :: dynamic alert php 
Php :: wordpress display all variables 
Php :: array to object php 
Php :: php ip 
Php :: php extract zip 
Php :: wordpress convert non negative 
Php :: validate timestamp php 
ADD CONTENT
Topic
Content
Source link
Name
9+8 =