[eluser]dallen33[/eluser]
I figured out the problem, but can't figure out a solution.
I have two databases I'm working with, and both have a clients table. One doesn't have a rep_id, one does. In my controller, I put this under the parent::Controller();
Code:
$this->mobile_db = $this->load->database('mobile_booking', TRUE);
And this is the code in my view:
Code:
<?php
$clients_query = $this->mobile_db->get_where('client', array('rep_id' => $this->dx_auth->get_user_id()));
if ($clients_query->num_rows() > 0):
foreach($clients_query->result() as $clients_row):
?>
Is my database load in the wrong spot?