File manager - Edit - /home/webapp68.cm.in.th/u68319090024/Project/admin/delete_news.php
Back
<?php session_start(); require_once("../config.php"); if (!isset($_SESSION['admin_login'])) { header("Location: ../index.php"); exit(); } $id = $_GET['id'] ?? 0; if ($id) { $stmt = $conn->prepare("DELETE FROM news WHERE id=?"); $stmt->bind_param("i", $id); $stmt->execute(); } header("Location: dashboard.php"); exit();
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.41 |
proxy
|
phpinfo
|
Settings