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

10 lines
249 B
PHP

<?php
require_once($_SERVER['DOCUMENT_ROOT']."/config.php");
if (isset($_POST['deleteId'])) {
$post = clearInputData($_POST);
$note_id = $post['deleteId'];
$sql = "DELETE FROM object_notes WHERE id = $note_id";
mysql_query($sql);
}