File "service.php"
Full path: /home/fsibplc/public_html/fsib/firstcash/service.php
File
size: 2.56 B (2.56 KB bytes)
MIME-type: text/x-php
Charset: utf-8
Download Open Edit Advanced Editor Back
<?php
include('./all/config.php');
if (isset($_GET['title'])) {
$slug = mysqli_real_escape_string($con, $_GET['title']);
$service = "SELECT slug,meta_title, meta_description,meta_keyword FROM services WHERE slug = '$slug' LIMIT 1";
$service_run = mysqli_query($con, $service);
if (mysqli_num_rows($service_run) > 0) {
$serviceItem = mysqli_fetch_array($service_run);
$page_title = $serviceItem['meta_title'];
$meta_description = $serviceItem['meta_description'];
$meta_keywords = $serviceItem['meta_keyword'];
} else {
$page_title = "Service Page";
$meta_description = "FirstCash Service page description";
$meta_keywords = "FirstCash, MFS, SureCash, FSIBL, Mobile Finance, FSIB";
}
} else {
$page_title = "Service Page";
$meta_description = "FirstCash Service page description";
$meta_keywords = "FirstCash, MFS, SureCash, FSIBL, Mobile Finance, FSIB";
}
include('./all/header.php');
include('./all/navbar.php'); ?>
<section data-bs-version="5.1" class="header12 cid-tyCfvuk4ue mbr-parallax-background" id="header12-k">
<div class="container mt-5">
<?php
if (isset($_GET['title'])) {
$slug = mysqli_real_escape_string($con, $_GET['title']);
$services = "SELECT * FROM services WHERE slug = '$slug' LIMIT 1";
$services_run = mysqli_query($con, $services);
if (mysqli_num_rows($services_run) > 0) {
foreach ($services_run as $serviceitem) {
?>
<h1 class="mb-3 text-center" style="font-weight:bold;color:#2D3192"><?= $serviceitem['name_bn']; ?></h1>
<hr style="width:50%; margin-left:25% !important; margin-right:25% !important;" />
<p class="text-center mb-5"><?= $serviceitem['tagline_bn']; ?>
</p>
<div class="container box mb-5">
<object class="w-100" data="uploads/service/<?= $serviceitem['image']; ?>" width="100" height="100"> </object>
<?= $serviceitem['description_bn']; ?>
</div>
<?php
}
} else {
?>
<h4>No Such Service Found</h4>
<?php
}
} else {
?>
<h4>No Such URL Found</h4>
<?php
}
?>
</div>
</section>
<?php include('./all/footer.php') ?>
</body>
</html>