I want my PHP to automatically refresh the page when data in the DB is updated. Is this possible with only PHP & HTML? Or do I need JS? Example: A status of an emergency vehicle changed. Then the coordinator of these vehicles should see it withoud refreshing the page
I tried it this way, but it didn't work:
while ($row['einsatz'] != 0){
$sql = "SELECT `status` FROM `Fahrzeuglisten` WHERE `id` = 1";
foreach ($db->query($sql) as $row) {}
if ($_SESSION["st11"] != $row['status']){
echo"<meta http-equiv='refresh' content='0'/>";
}