I have 10000 rows on table in my database. When ever I try to load all my data, page stop working error comes. Is there limit of loading data in data table? And if yes, then how can i increase that limit?
<?php
foreach($recs as $ans)
{
?>
<tr>
<td><center><?php echo $ans['sz_StockID']; ?></center></td>
</tr>
<?php
}
?>
Controller:
$this->check_session();
$data['recs']=$this->am->get_diamonds();
Model:
$q=$this->db->query('select * from `table_name`');
return $q->result_array();