<?php
require_once 'config.php';
$interval = $_POST['interval']; // Get the user-defined interval from a form
// Fetch data from the "data_storage" table
$stmt = $conn->prepare("SELECT * FROM data_storage");
$stmt->execute();
$data = $stmt->fetchAll(PDO::FETCH_ASSOC);
// Display the data in a table
echo "<table>";
foreach ($data as $row) {
echo "<tr>";
echo "<td>" . implode("</td><td>", json_decode($row['register_data'], true)) . "</td>";
echo "</tr>";
}
echo "</table>";
?>
Comments