I have run this code
to show all columns
from database
table.
public function autorun()
{
$mysql_query = "show columns from store_accounts";
$query = $this->db->simple_query($mysql_query);
foreach ($query->result() as $row) {
$column_name = $row->Field;
echo $column_name; exit;
}
}
but it gives me that error.
Call to undefined method mysqli_result::result()