Welcome Guest, Not a member yet? Register   Sign In
Confused about use of $data between Model, Controller and View
#4

[eluser]TWP Marketing[/eluser]
I think I see the problem:
Code:
public function get_all_destinations()
{
  $query = $this->db->query('SELECT * FROM DESTINATIONS WHERE DELETED = 0');
  return $query->row_array();
}

Should use result_array() as:

Code:
public function get_all_destinations()
{
  $query = $this->db->query('SELECT * FROM DESTINATIONS WHERE DELETED = 0');
  return $query->result_array();
}


Messages In This Thread
Confused about use of $data between Model, Controller and View - by El Forum - 09-07-2012, 07:34 AM



Theme © iAndrew 2016 - Forum software by © MyBB