/
home2
/
ajwaeing
/
public_html
/
Upload File
HOME
<?php require_once "dbConnection.php"; $db = new dbConnection(); if(isset($_GET["page"]) && !empty($_GET["page"])) { $page = $_GET["page"]; $qry = "SELECT * FROM contents WHERE pgname LIKE '$page' LIMIT 1"; $res = $db -> query($qry); $row = $db -> fetch($res); $xtitle = stripslashes($row["title"]); $category = stripslashes($row["category"]); $keywords = stripslashes($row["keywords"]); $descriptions = stripslashes($row["descriptions"]); $imgtitle = stripslashes($row["imgtitle"]); $imgdesc = stripslashes($row["imgdesc"]); $pgstatus = $row["pgstatus"]; $featured = $row["featured"]; $picture = $row["pimage"]; $page_content = stripslashes($row["contents"]); } else { header("location:index.php"); exit; } ?> <!doctype html> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="keywords" content="<?=$keywords?>"> <meta name="description" content="<?=$descriptions?>"> <title><?=$xtitle?> :. Ajwa Engineering & Central Heating System</title> <?php require_once "includes.php"; ?> </head> <body> <div class="body-wrapper" id="page-top"> <?php require_once "header.php"; ?> <!-- Page Title --> <section class="page-title"> <div class="container"> <div class="row"> <div class="col-sm-12 col-md-12" id="title"> <div class="page-title-inner"> <h2><?=$xtitle?></h2> </div> </div> </div> </div> </section> <!-- /Page Title --> <!-- Main Body --> <section class="main-body symptoms"> <div class="container"> <div class="row"> <div class="col-sm-12 col-md-12"> <?php if(!empty($picture) && file_exists($picture)) { ?> <img src="<?=$picture?>" alt="<?=$imgtitle?>" class="img-responsive" style="float:left; margin:20px; float:left;" > <?php } ?> <?=$page_content?> </div> </div> </div> </section> <!-- /Main Body --> <?php require_once "footer.php"; ?> </div> <?php require_once "fincludes.php"; ?> </body> </html>