Welcome Guest, Not a member yet? Register   Sign In
Different query result localhost / online
#1

[eluser]predat0r[/eluser]
Hi,
with the same model function, why i have different query results on localhost, and online?
Especially i use status = active to query active articles from db, but works only well on localhost.
Code:
function get_articles($limit, $offset) {
  $data = array();
  $ig = explode('-', $this->settings->get_setting('archiv_hirek'));
  
  $query = $this->db->select('cikkek.id, cikkek.csop_id, cikkek.title, cikkek.preview, cikkek.body, cikkek.date as datum, cikkek.tags, cikkek.seo_title, cikkek.hir, cikkek.fooldal, cikkek.allando, hir_kategoriak.nev as katnev, hir_kategoriak.id as kat_id, user_profile.full_name as author, szervezet.name as szervezet, szervezet.id as szervezet_id')
           ->join('user_profile', 'cikkek.author_id = user_profile.user_id')
        ->join('hir_kategoriak', 'hir_kategoriak.id = cikkek.hir_kat_id')
        ->join('szervezet', 'szervezet.id = cikkek.szervezet_id')      
        ->where('YEAR(`date`) >=', $ig[0])
        ->where('MONTH(`date`) >=', $ig[1])
          ->where('DAY(`date`) >', $ig[2])
        ->where('cikkek.id !=', 1)
                                                  ->where('cikkek.status', 'aktiv')
        ->where('cikkek.hir', 1)
        ->or_where('cikkek.permanent', 1)
          ->order_by('datum', 'DESC')
        ->limit($limit, $offset)
        ->get('cikkek');
..............

Ty




Theme © iAndrew 2016 - Forum software by © MyBB