[eluser]Funky Fresh[/eluser]
Hey All,
Im having a bit of difficulty with a query im trying to perform.
I want to retreive all details for a file stored in the database.
in my model, i have the following code.
Code:
function getFileInfo($transferid)
{
$data = array();
$this->db->select('1', FALSE);
$this->db->where('transferid', $transferid);
$query = $this->db->get(self::TABLE_IDX);
if($query->num_rows() > 0){
$data = $query->row_array();
}
$query->free_result();
return $data;
}
In my controller i have the following
Code:
$data['fileinfo'] = $this->Idxfiles_model->getFileInfo($transferid);
Everything i try in my view to output the results, for example the name, doesnt seem to be working.
Can someone please help me out on where im going wrong.
Cheers,