Joywork/ajax/cancelEvent.php

8 lines
220 B
PHP
Raw Normal View History

2026-05-22 20:21:54 +02:00
<?php
require_once($_SERVER['DOCUMENT_ROOT']."/config.php");
if(isset($_POST['cancelId'])){
$id = (int)$_POST['cancelId'];
$sql = "UPDATE user_client_events SET cancel=1 WHERE id = $id";
mysql_query($sql);
}