<?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>
<?php include "include/header.php"; ?>

<?php 

    
                                         
        $message_sql = "SELECT * FROM message WHERE m_by ='$x'  ORDER BY  m_pos ASC limit 1";
        $message_run = mysqli_query($con, $message_sql);
        $message_rows = mysqli_fetch_assoc($message_run);
       
               $newsPath = substr($message_rows['m_img'], 3);
               $newsPath = "login/".$newsPath;
?>
<section class="w3l-contact-breadcrum">
  <div class="breadcrum-bg py-sm-5 py-4">
    <div class="container py-lg-3">
      <h2><?php echo $message_rows['m_design']; ?> Message</h2>
      <p><a href="index.php">Home</a> &nbsp; / &nbsp; <?php echo $message_rows['m_design']; ?> Message</p>
    </div>
  </div>
</section>
<section class="w3l-content-with-photo-4">
    <div id="content-with-photo4-block" class="pt-5"> 
        <div class="container py-md-5">
            <div class="cwp4-two row">
                <div class="cwp4-image col-lg-4 col-md-8 pl-lg-5 mt-lg-0 mt-5" style="padding-top: 20px;">
                                       <img src="<?php echo $newsPath; ?>" alt="img" width="180px" height="150px"   style=" border: 2px solid #002147;
  border-radius: 5px;">
                </div>
                <div class="cwp4-text col-lg-8 col-md-8" style="padding: 0 30px;">
                       
                    <p st yle="font-size: 20px;">
                        
                        <div align="justify"><?php echo $message_rows['message']; ?></div>
                    </p>
                  
                    <p style="text-align: right; font-size: 20px;"><?php echo $message_rows['m_name']; ?> <br>

                                               
                                                </p>
                </div>
                
            </div>
        </div>
    </div>
</section>

<?php include "include/footer.php"; ?>
<?php include "include/js.php"; ?>

</body>

</html>

