Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function searchCourseOutline() {
- $searchMe = $this->uri->segment(3);
- $sortBy = $this->uri->segment(4);
- if (!empty($searchMe)) {
- $this->db->select('co_id,co_faculty,co_name,co_code');
- $this->db->from('eloki_co');
- $this->db->like($sortBy, $searchMe);
- $this->db->like('co_approvalstatus',1);
- $this->db->order_by($sortBy, "asc");
- $q = $this->db->get();
- if ($q->num_rows() > 0) {
- foreach ($q->result() as $row) {
- $data[] = $row;
- }
- return $data;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement