[eluser]louisc[/eluser]
Hi everyone, I am having problems with the way codeigniter returns the result_array array.
Example:
Model:
Code:
public function get_titles()
{
$query = $this->db->get('lu_titles'); // id and value for dropdown
return $query->result_array();
{
View:
Code:
$db_results = $this->lookup_model->get_titles();
Which in theory would work great, but it doesn't!
Please help me, it returns a 2d array and this messes everything up.
Please be patient, I am new to codeigniter and did google.