D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
diafrica
/
public_html
/
Filename :
news_details.php
back
Copy
<?php include 'includes/config.php'; $id = $_GET['id']; $query = "SELECT * FROM events WHERE id='$id' "; $query_run = mysqli_query($con, $query); while ($row_post = mysqli_fetch_array($query_run)) { $title = $row_post['title']; $image = $row_post['image']; $contenter = $row_post['content']; } ?> <?php $page_title; $page_title = ucfirst(basename(__FILE__, '.php')); if ($page_title === 'index') { $page_title = 'Home'; } $page_title = $title; include 'section/header.php'; include 'section/pages-header.php'; include 'includes/functions.php'; $Functions = new Functions(); ?> <!DOCTYPE html> <html dir="ltr" lang="en"> <!-- Start main-content --> <div class="main-content"> <div class="containter text-center"> <h2 class="text-uppercase mt-150 mb-0"><?= $page_title ?></h2> </div> <!-- Section: Team --> <section> <div class="container"> <div class="row"> <div class="col-md-10"> <div class="owl-carousel-1col" data-nav="true"> <div class="item"><img src="<?= $image ?>" alt=""></div> </div> </div> </div> <div class="row mt-60"> <div class="col-md-12"> <h4 class="mt-0"><?= $title ?></h4> <p><?= $contenter ?></p> </div> </div> </div> </section> </div> <!-- end main-content --> <?php include_once 'section/footer.php'; ?>