Welcome Guest, Not a member yet? Register   Sign In
How can i make model query based on images
#5

(This post was last modified: 08-19-2015, 08:44 PM by freddy.)

Thanks mwhitney but has bugs in here 
Code:
//$query=$this->db->query("SELECT * FROM `articles` WHERE art_jenis='TREND' ORDER BY art_id DESC limit 4");
        //$data['main'] = $query->row(3);
        $leftarticle = $this->model_front->lefttrend();
        $rows = array();
        $rows[] = $leftarticle->row_array(2);
        $rows[] = $leftarticle->row_array(3);
        $data['rows'] = $rows;
        $this->load->view('row',$data);
    }

when data more than 4 or even just 4 it's oke no problem with view but i'm trying to delete 1 so data 4-1=3 it show twice here is images http://prntscr.com/86p3ga

then i'm trying to delete again to  be 2 data (3-1=2)  in table it also show it, it suppose to be only show 2 row without third row, i mean 2 row show twice too.

then tested remove data and remain 1 data also show twice, what do i wrong here ?

Please Correct me where i should give if, Thanks 
Reply


Messages In This Thread
RE: How can i make model query based on images - by freddy - 08-19-2015, 08:33 PM



Theme © iAndrew 2016 - Forum software by © MyBB