I am having problem for viewing the Tamil content which retrive from mysql database using CodeIgniter. but the same code is working in core php. i have attached my code below. please check my code and give answer if any changes.
this is my view code:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<table class="table table-striped table-bordered table-hover dataTables-example" >
<thead>
<tr>
<th>Title</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<?php
foreach ($per_results as $result)
{
?>
<tr class="">
<td><?php echo $result->title;?></td>
<td><?php echo $result->description;?></td>
</tr>
<?php
}
?>
</tbody>
</table>
This is my Controller COde:
public function view_mainhome()
{
$data['per_results'] = $this->Login_model->getview_permission();
$this->load->view('forest_add/view_mainhome',$data);
}
This is my Model Code:
function getview_permission() //Stock
{
$this->db->select('*');
$this->db->from('forest_permission');
$this->db->order_by("per_id", "asc");
$query = $this->db->get();
return $query->result();
}
Thanks @