I'm using CodeIgniter 2.1.3. I have problem with function list_fields()
which should return an array of fields of the MySQL result. So my code below should list all fields of the MySQL result.
$query = $this->db->query("SELECT * from $tablename where REGNO='$keyword' " );
$fields = $query->list_fields();
foreach ($fields as $f)
{
echo $f;
}
It works fine in Windows but it is not working in Linux, but if the number of rows are zero in results, it works even in Linux.
Any idea what's going wrong?