[eluser]clip[/eluser]
Yes, set the results of "your" db query to the template variable as I stated above and process as necessary just make sure you assign it to $this->data so it's available to all of your controllers that extend your MY_Controller.