Joywork/ajax/unconfirmObject.php
2026-05-22 21:21:54 +03:00

15 lines
358 B
PHP

<?php
require_once($_SERVER['DOCUMENT_ROOT']."/config.php");
ini_set('display_errors', 1);
error_reporting(E_ALL & ~E_DEPRECATED & ~E_STRICT & ~E_NOTICE);
if($_SESSION['id'] && $_GET['id']) {
$get = clearInputData($_GET);
$sql = "UPDATE objects_to_send SET accept_date=NOW(), accept_state='REJECTED' WHERE id=$get[id]";
mysql_query($sql);
}