[eluser]_Smilie_[/eluser]
Hi,
So this is my controller:
Code:
$data['query'] = $this->db->get('host');
$data['row'] = $this->db->where('host_queued =', 1);
$data['pendingHosts'] = $this->db->count_all_results('host');
$data['tableTitle'] = 'Pending hosts in database';
$this->load->view('global/header');
$this->load->view('global/userinfo');
$this->load->view('host_edit', $data);
Alright, so this works flawlessly, however I would like my row to be the actual array, so i tried:
$data['row'] = $this->db->where('host_queued =', 1)->row_array();
It didn't make much sense in my head, but had no idea on how else to do this in the controller. I perform the edit and wupti, page refresh produces:
Fatal error: Call to undefined method CI_DB_mysql_driver::row_array() in C:\xampp\htdocs\whr\application\controllers\host.php on line 43
Any tips?