|
Server IP : 86.38.243.193 / Your IP : 216.73.217.143 Web Server : LiteSpeed System : Linux in-mum-web1336.main-hosting.eu 4.18.0-553.34.1.lve.el8.x86_64 #1 SMP Thu Jan 9 16:30:32 UTC 2025 x86_64 User : u493057690 ( 493057690) PHP Version : 8.2.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : OFF | Python : ON Directory (0755) : /home/u493057690/domains/iasfindia.com/public_html/admin/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<?php
require_once 'connect.php';
if (isset( $_POST['deactive'] ))
{
$id=$_POST['id'];
$query = $conn->query("UPDATE latest_news set status='Deactive' where id='$id'") or die(mysqli_error());
mysqli_query($conn,$query);
echo "<script> window.location=\"update-news.php\"</script>";
}
if (isset( $_POST['active'] ))
{
$id=$_POST['id'];
$query = $conn->query("UPDATE latest_news set status='Active' where id='$id'") or die(mysqli_error());
mysqli_query($conn,$query);
echo "<script> window.location=\"update-news.php\"</script>";
}
?>