<?php
require_once 'config.php';
// Fetch data from the "data_storage" table
$stmt = $conn->prepare("SELECT register_data, created_at FROM data_storage");
$stmt->execute();
$data = $stmt->fetchAll(PDO::FETCH_ASSOC);
echo json_encode($data);
?>
<?php
require_once 'config.php';
// Fetch data from the "data_storage" table
$stmt = $conn->prepare("SELECT register_data, created_at FROM data_storage");
$stmt->execute();
$data = $stmt->fetchAll(PDO::FETCH_ASSOC);
echo json_encode($data);
?>
Comments