날짜 열 invoiceDate가있는 테이블이 있습니다. 그에서 28-02-13날짜 범위 사이에 레코드를 찾을 때 codeigniter에서 빈 레코드가 반환됩니다
로를 invoiceDate의 값이 기록은 지금은 날짜 범위 사이에 기록을 가져 오기 위해 아래의 사용이 :
$this->db->select('*');
$this->db->from('salesinvoices');
$dateone=date('Y-m-d',strtotime('26-02-13'));
$datetwo=date('Y-m-d',strtotime('12-03-13'));
$this->db->where('invoiceDate >=', $dateone);
$this->db->where('invoiceDate <=', $datetwo);
$query = $this->db->get();
$results = $query->result();
print_r($results);
난 항상 얻을 빈 기록 :(
컬럼 날짜 또는 날짜 시간의 유형은 무엇입니까? –