ÿØÿà JFIF H H ÿÛ C GIF89;
| System: Linux in-mum-web1642.main-hosting.eu 5.14.0-611.42.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Mar 24 05:30:20 EDT 2026 x86_64 Current Path : /home/u323559503/domains/purplelimonada.com/public_html/panel/admin/app/ |
| Current File : /home/u323559503/domains/purplelimonada.com/public_html/panel/admin/app/solutions_seo_crud.php |
<?php
session_start();
include '../../assets/constant/config.php';
try {
$conn = new PDO("mysql:host=$servername;dbname=$dbname", $username, $password);
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
if (isset($_POST['update'])) {
$stmt = $conn->prepare("UPDATE `solutions_seo` SET `metatitle`=?,`metadescription`=?, `keywords`=?,`metatitlef`=?,`metadescriptionf`=?, `linkf`=?, `metatitlet`=?,`metadescriptiont`=? WHERE id=? ");
$stmt->execute([
htmlspecialchars($_POST['metatitle'], ENT_QUOTES, 'UTF-8'),
htmlspecialchars($_POST['metadescription'], ENT_QUOTES, 'UTF-8'),
htmlspecialchars($_POST['keywords'], ENT_QUOTES, 'UTF-8'),
htmlspecialchars($_POST['metatitlef'], ENT_QUOTES, 'UTF-8'),
htmlspecialchars($_POST['metadescriptionf'], ENT_QUOTES, 'UTF-8'),
htmlspecialchars($_POST['linkf'], ENT_QUOTES, 'UTF-8'),
htmlspecialchars($_POST['metatitlet'], ENT_QUOTES, 'UTF-8'),
htmlspecialchars($_POST['metadescriptiont'], ENT_QUOTES, 'UTF-8'),
htmlspecialchars($_POST['id'], ENT_QUOTES, 'UTF-8')
]);
// print_r($stmt);exit;
$_SESSION['update'] = "update";
header("location:../solutions_seo.php");
}
if (isset($_POST['del_id'])) {
$id = htmlspecialchars($_POST['del_id']);
$stmt = $conn->prepare("UPDATE `blog_seo` SET delete_status='1' where id=? ");
$stmt->execute([$id]);
$_SESSION['delete'] = "delete";
header("location:../solutions_seo.php");
}
} catch (PDOException $e) {
echo "Connection failed: " . $e->getMessage();
}