Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?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>";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement