Beyaz.Net İpucu
Codeigniter veritabanından distinct ile veri çekme
public function DB_Kategoriler()
{
$sart = array (
'YAYINDA' => 'F'
);
$this->db->distinct('KATEGORI_ID');
$this->db->select('KATEGORI');
$this->db->where($sart);
$this->db->order_by('ID','DESC');
return $this->db->get('kategoriler');
}
{
$sart = array (
'YAYINDA' => 'F'
);
$this->db->distinct('KATEGORI_ID');
$this->db->select('KATEGORI');
$this->db->where($sart);
$this->db->order_by('ID','DESC');
return $this->db->get('kategoriler');
}