с даты: 04.01.2015
до даты: 05.01.2015
но я не могу получить дату в одной переменной;
как я получаю, как указано ниже:
Код: Выделить всё
$fdate=01;
$fmonth=04;
$tdate=01;
$tmonth=05;
$year=2015;
Код: Выделить всё
function date_range($fdate,$fmonth,$tdate,$tmonth,$year)
{
$this->db->select('*');
$this->db->where('DAY(order_date) >=',$fdate);
$this->db->where('MONTH(order_date) >=',$fmonth);
$this->db->where('YEAR(order_date) >=',$year);
$this->db->where('DAY(order_date)
Подробнее здесь: [url]https://stackoverflow.com/questions/29574777/codeigniter-getting-data-between-two-dates-in-mysql-using-php[/url]
Мобильная версия