You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

23 lines
716 B

<?php
ob_start();
include "header.php";
$id = isset($_GET['id']) ? $_GET['id'] : die('ERROR: Record ID not found.');
$db_query = "update form_list set status = 'N', create_at = NOW() where id = '$id' and creater = '$user_id'";
$res = mysqli_query($link, $db_query);
/*
$db_query = "select path from form_list where id = '$id'";
$res = mysqli_query($link, $db_query);
$row = mysqli_fetch_row($res);
$target_file = $row[0];
mysqli_free_result($res);
$db_query = "delete from form_list where id = '$id'";
mysqli_query($link, $db_query);
unlink($target_file);
*/
//header("Location:forms-index.php");
header("Refresh:0; url=forms-index.php?function_name=forms&".$token_link);
ob_end_flush();
?>