LiteSpeed Linux server2.poyrazhosting.com 3.10.0-962.3.2.lve1.5.77.el7.x86_64 #1 SMP Mon Dec 12 07:06:14 EST 2022 x86_64 safemode : OFF MySQL: OFF | Perl: OFF | cURL: ON | WGet: OFF > / home / cuneytsener53 / restaurant1.snrsoft.com.tr / xpanel / | Server Ip : 172.67.216.244 |
Filename | /home/cuneytsener53/restaurant1.snrsoft.com.tr/xpanel/slider-sil.php |
Size | 459 |
Permission | rw-r--r-- |
Owner | |
Create time | 02-Mar-2025 05:46 |
Last modified | 19-Nov-2020 10:07 |
Last accessed | 05-Apr-2025 10:23 |
Actions | edit | rename | delete | download (gzip) |
View | text | code | image |
<?php
if ($_GET) {
include("inc/vt.php");
$sorgu = $dbh->prepare("SELECT * FROM banner Where id=:id");
$sorgu->execute(['id' => (int)$_GET["id"]]);
$sonuc = $sorgu->fetch();
unlink('../img/' . $sonuc["foto"]);
$where = ['id' => (int)$_GET['id']];
$durum = $dbh->prepare("DELETE FROM banner WHERE id=:id")->execute($where);
if ($durum) {
header("location:slider-liste.php");
}
}
?>
if ($_GET) {
include("inc/vt.php");
$sorgu = $dbh->prepare("SELECT * FROM banner Where id=:id");
$sorgu->execute(['id' => (int)$_GET["id"]]);
$sonuc = $sorgu->fetch();
unlink('../img/' . $sonuc["foto"]);
$where = ['id' => (int)$_GET['id']];
$durum = $dbh->prepare("DELETE FROM banner WHERE id=:id")->execute($where);
if ($durum) {
header("location:slider-liste.php");
}
}
?>