JustPaste.it

<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>
<!DOCTYPE html>

<html>
<head>

<!-- import CSS from external site -->

<link rel="nofollow" href="https://justpaste.it/redirect/5ytqq/https%3A%2F%2Fcdnjs.cloudflare.com%2Fajax%2Flibs%2Ftwitter-bootstrap%2F4.1.1%2Fcss%2Fbootstrap.css"/>

<link rel="nofollow" href="https://justpaste.it/redirect/5ytqq/https%3A%2F%2Fcdn.datatables.net%2F1.10.19%2Fcss%2FdataTables.bootstrap4.min.css"/>


<!-- Import JS from extrenal site -->

<script type="text/javascript" src="https://code.jquery.com/jquery-3.3.1.js"></script>
<script type="text/javascript" src="https://cdn.datatables.net/1.10.19/js/jquery.dataTables.min.js"> </script>
<script type="text/javascript" src="https://cdn.datatables.net/1.10.19/js/dataTables.bootstrap4.min.js"></script>


<script type="javascript">
$(document).ready(function() {
$('#example').DataTable();
} );
</script>

<title> Best Selling Products Report </title>
</head>
<body>

<h3> Best Selling Products Reports</h3>
<table id="example">
<tr>
<th>Store_id</th>
<th>Sku</th>
<th>Qty_Ordered</th>
</tr>

<?php
foreach($productArray as $key => $result)
{
##### For Testing purpose ####

// echo "<pre>";
// print_r($result);
// echo "</pre>";

echo "<tr>

<td>".$result->store_id."</td>
<td> ".$result->sku." </td>
<td> ".$result->Qty_Ordered." </td>

</tr>";
}

?>
</table>

</body>
</html>