Mini Shell
| Direktori : /home/mhcadmin/eya/ |
|
|
| Current File : /home/mhcadmin/eya/Search_Results.php |
<!DOCTYPE html>
<html class="wide wow-animation" lang="en">
<?php
require_once 'config/config.php';
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$SearchCategory = $_POST['s'];
if (!empty($SearchCategory)){
$result = mysqli_query( $connection,"SELECT * FROM pageregister WHERE PageName like '%$SearchCategory%' OR PageHeading like '%$SearchCategory%' OR PageMessage like '%$SearchCategory%' OR PageType like '%$SearchCategory%' Order by PageID ASC");
$count=mysqli_num_rows($result);
if($count>0 ){
include_once('includes/Header.php');
?>
<a class="d-block" href="" target="blank"><img class="d-block w-100" src="images/MHCB1.jpg" height="200"></a>
<?php while($row = mysqli_fetch_array($result)){ ?>
<!-- Blog Post-->
<section class="section section-sm bg-gray-100">
<div class="container">
<div class="row row-50">
<div class="col-lg-12">
<div class="blog-post">
<!-- Badge-->
<div class="badge badge-secondary"><?php echo $row['PageType']; ?>
</div>
<?php $PageName = $row['PageName']; ?>
<h3 class="blog-post-title"><a href="<?php echo $PageName;?>"><?php echo $row['PageHeading']; ?></a></h3>
<div class="blog-post-header">
</div>
<div class="blog-post-author-quote">
<p><?php echo $row['PageMessage']; ?></p>
</div>
</div>
</div>
</div>
</div>
</section>
<?php } }else {header("location: 404-error-page.php");}}}?>
<!-- Page Footer-->
<?php
include_once('includes/Footer.php');
?>
</body>
</html>