I'm looking for the simplest possible method to automatically update the below every X seconds to fade in new results and fade out old results.
I have searched online but everything that I have found has been extremely complex so I was wondering what would be the simplest possible method to achieve this?
<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);
include('core/connection.php');
if($conn){
$stid = oci_parse($conn, "
SELECT OrderNo, InvoiceNo
FROM Orders
WHERE rownum <= 5
ORDER BY rownum DESC
");
oci_execute($stid);
echo "<table class='table table-hover '>
<thread>
<tr>
<th>OrderNo</th>
<th>InvoiceNo</th>
<th></th>
</tr>
</thread>
<tbody>";
while ($row = oci_fetch_array($stid, OCI_ASSOC)) {
echo "<tr>";
echo "<td>" . $row['OrderNo'] . "</td>";
echo "<td>" . $row['InvoiceNo'] . "</td>";
echo "</tr>";
unset($row);
}
echo "</tbody>
</table>";
oci_free_statement($stid);
oci_close($conn);
}
?>