codeigniter select not working
use this
function get_tree($id){ $query = $this->db->query("SELECT ascending_path FROM category WHERE id ='$id'"); $result = $query->result_array(); return $result; }
use this
function get_tree($id){ $query = $this->db->query("SELECT ascending_path FROM category WHERE id ='$id'"); $result = $query->result_array(); return $result; }