When we are supposed to fetch some 200 database entries using php and display them in the page using html, what is the best way to do so. Right now i am doing like this<?php echo $variable1?;>,,,,<?php echo $variable200;?> and feel like its bit slow to load. Any alternative please?
model:
$query_str = "select *from table where sl_no='$report_id' and code='$code'";
$row=$query->row_array();
return $row;
controller:
$reports=$this->patient_model->fetch_previous_reports($pat_lab_id);
echo json_encode($reports);
$var[0]...$var[199]as an array of organised data