I found two questions that are not similar to mine so they weren't any help.
What I'm trying to do is use pagination feature without using table because I need to show the data to the user not in a table format. In other words, they will see the name, the date and other stuff in a non-table format.
My controller:
$uid = $this->session->userdata('uid'); //added on sat , feb 28
$this->load->library('pagination');
$this->load->library('table');
$this->table->set_heading('');
$config['base_url'] = 'http://localhost/profile/entries';
$config['total_rows'] = $this->db->get_where('notes', array('uid' => $uid))->num_rows();
$this->db->where('uid', $uid);
$this->db->order_by("time", "desc");
$config['per_page'] = 20;
$config['num_links'] = 2;
$config['first_link'] = FALSE;
$config['last_link'] = FALSE;
$this->pagination->initialize($config);
$data['records'] = $this->db->get('notes', $config['per_page'], $this->uri->segment(3));
$this->pagination->create_links();
$this->load->view('profile/includes/header');
$this->load->view('profile/view_all_notes', $data);
My view File
<html>
<body>
<div class="container">
<h3 class="block-title block-title--simple"> Your <?php echo $site_title ?> Notes </h3>
foreach ($query->result() as $row) :
<?php
foreach ($query->result() as $row) :
?>
<div class="col-md-4">
<h1><?php echo $row['message']; ?></h1>
<h2><?php echo $row['time']; ?></h2>
</div>
<?php
endforeach;
?>
<?php echo $this->pagination->create_links(); ?>
</div>
</body>
</html>
I have tried doing that but it doesn't show it. I just dont want it showing in the table format. Thanks.