Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function count_by_progdi($progdi_id) {
- $this->db->from('ft_lowker');
- $this->db->where('progdi_id', $progdi_id);
- return $this->db->count_all_results();
- }
- function select_all_id($limit = 6, $offset = 0, $progdi_id) {
- $progdi_id = $this->uri->segment(3);
- $this->db->select('*');
- $this->db->from('ft_lowker l');
- $this->db->join('ft_users u', 'l.user_id = u.user_id');
- $this->db->join('ft_progdi p', 'l.progdi_id = p.progdi_id');
- $this->db->where('l.progdi_id', $progdi_id);
- $this->db->limit($limit);
- $this->db->offset($offset);
- $this->db->order_by('l.lowker_tgl_post', 'desc');
- return $this->db->get();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement