I am facing an issue with an array that contains a record set generated by the CodeIgniter model.
When attempting to display these records in an HTML table using my view, the layout is not rendering correctly. Here is a snippet of my view:
<html>
<head>
<title>Fuel Order:</title>
</head>
<body onload="window.print()">
<div class="col-xs-12 table-responsive">
<table class="table table-bordered" style="font-size: 11px;">
<tbody>
<?php
if (!empty($printData)) {
foreach ($printData as $item) {
?>
<tr>
<td><p style="position: absolute;top: 20cm;right: 14cm"><?=$item->item_name?></p></td>
<td><p style="position: absolute;top: 20cm;right: 11.5cm"><?=$item->fuel_qty?> Litres</p></td>
<td><p style="position: absolute;top: 20cm;right: 6.5cm"><?=$this->amount_word?></p></td>
</tr>
</tbody>
</table>
</div>
</body>
</html>
Though the view appears to be correct, the issue arises when the records start overlapping each other.