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
683 B
23 lines
683 B
<?php
|
|
ob_start();
|
|
include "header.php";
|
|
|
|
$id = isset($_GET['id']) ? $_GET['id'] : die('ERROR: Record ID not found.');
|
|
|
|
$db_query = "update board set status = 'N', create_at = NOW() where id = '$id' and creater = '$user_id'";
|
|
$res = mysqli_query($link, $db_query);
|
|
/*
|
|
$db_query = "select attach from board 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 board where id = '$id'";
|
|
mysqli_query($link, $db_query);
|
|
unlink($target_file);
|
|
*/
|
|
//header("Location:board-index.php");
|
|
header("Refresh:0; url=board-index.php?function_name=board&".$token_link);
|
|
ob_end_flush();
|
|
?>
|