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/escort46.de/public_html/ |
<?php
include("db_connection.php");
$id=$_GET['id'];
date_default_timezone_set('Europe/Berlin'); // set your timezone
$date = date("Y-m-d H:i:s");
// Check connection²M
if ($connection->connect_error) {
die("Connection failed: " . $connection->connect_error);
}
$sql = "UPDATE advertise SET update_date='$date' WHERE em_id='$id'";
if ($connection->query($sql)) {
echo 'DB Update successful';
}
else {
echo 'DB Update failed';
}
$connection->close();
?>