diff --git a/index.php b/index.php index afaf58b..b11cf25 100755 --- a/index.php +++ b/index.php @@ -20,6 +20,11 @@ $stmt2 = $mysqli->prepare("DELETE FROM Connections WHERE TimestampPing < (CURREN $stmt2->execute(); $stmt2->store_result(); +$stmt20 = $mysqli->prepare("DELETE FROM Chat WHERE Timestamp < (CURRENT_TIMESTAMP - 86400);"); +$stmt2->execute(); +$stmt2->store_result(); + + if (!empty($_GET["adder"])){ if ($_SERVER['REQUEST_METHOD'] == 'POST') { $heslo = trim($_POST['heslo']);