<?php
require('db.php');
include "x.php";
?>

<!DOCTYPE html>
<html lang="en">
<head>

     <?php include "include/meta.php"; ?>

     <?php include "include/css.php"; ?>  


</head>
<body id="default_theme" class="contact_us_2">

    <?php include "include/header.php"; ?> 

<!-- inner page banner -->
<?php 

    if (isset($_GET['msg']) && !empty($_GET['msg'])) {
        $msg_id= $_GET['msg'];
                                         
        $message_sql = "SELECT * FROM message WHERE m_by ='$x'  ";
        $message_run = mysqli_query($con, $message_sql);
        $message_rows = mysqli_fetch_assoc($message_run);
       
               $newsPath = substr($message_rows['m_img'], 3);
               $newsPath = "login/".$newsPath;
?>
<div id="inner_banner" class="section inner_banner_section">
  <div class="container">
    <div class="row">
      <div class="col-md-12">
        <div class="full">
          <div class="title-holder">
            <div class="title-holder-cell text-left">
              <h1 class="page-title"><?php echo $message_rows['m_design']; ?> Message</h1>
              <ol class="breadcrumb">
                <li><a href="index.php">Home</a></li>
                <li class="active"><?php echo $message_rows['m_design']; ?> Message</li>
              </ol>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
<!-- end inner page banner -->
 <section id="mu-course-content" style="margin: 30px 10px;">
   <div class="container">
      <div class="row">
        <div class="col-md-12">
              <div class="row">
                <div class="col-md-3">
                    <img src="<?php echo $newsPath; ?>" alt="img" width="180px" height="150px"   style=" border: 2px solid #002147;
  border-radius: 5px;">
                </div>
                <div class="col-md-9">
                  <h2><a href=""><?php echo $message_rows['m_name']; ?></a></h2>
                  <h4><?php echo $message_rows['m_design']; ?></h4>
                </div>
              </div>
                <h4></h4>
                <div align="justify"><?php echo $message_rows['message']; ?></div>
               
        </div>                                 
      </div>
   </div>
 </section>


<?php 
 }
 ?>
     <?php include "include/footer.php"; ?> 
     <?php include "include/js.php"; ?> 
</body>
</html>

