Server : LiteSpeed System : Linux nl-srv-web1396.main-hosting.eu 4.18.0-553.83.1.lve.el8.x86_64 #1 SMP Wed Nov 12 10:04:12 UTC 2025 x86_64 User : u107206879 ( 107206879) PHP Version : 7.2.34 Disable Function : NONE Directory : /home/u107206879/domains/annoncelights.dk/public_html/admin/service/ |
<?php
include "../db_connection.php";
include "../sessioncheck.php";
if(isset($_POST['trans']) && ($_POST['trans']=='repress') && !empty($_POST['trans']) && isset($_POST['value']) && !empty($_POST['value'])){
$ad_id = $_POST['value'];
$now_date = date('Y-m-d H:i:s');
$sql=mysqli_query($connection,"UPDATE advertise SET update_date='".$now_date."' WHERE id=$ad_id");
if($sql){
echo 'Ad is Repressed and is now on top of the current plan.';
}
}
?>