application/models/M_Report.php
// Fetch data according to per_page limit.
Fetch data according to per_page limit.
Fetch data according to per_page limit .
public function fetch_data_Saldo($limit) {
		$a_procedure = "CALL ViewSaldoON(?)";
		$query = $this->db->query( $a_procedure,array('LimitPerPage'=>$limit));
		if ($query->num_rows() > 0) {
		foreach ($query->result() as $row) {
		$data[] = $row;
		}
		return $data;
		}
		return false;
		}
public function fetch_data_Saldo ( $ limit ) { $ a_procedure = " CALL ViewSaldoON(?) " ; $ query = $ this -> db -> query ( $ a_procedure , array ( 'LimitPerPage' => $ limit ) ) ; if ( $ query -> num_rows ( ) > 0 ) { foreach ( $ query -> result ( ) as $ row ) { $ data [ ] = $ row ; } return $ data ; } return false ; }
Fetch data according to per_page limit.
Fetch data according to per_page limit .