<?php
include 'header.php';

if (isset($_GET['support'])) {
    $Editsupport = $_GET['support'];
  
    $sql = mysqli_query($link, "SELECT * FROM  support WHERE id = '$Editsupport' ");
      if (mysqli_num_rows($sql) > 0) {
      $row = mysqli_fetch_assoc($sql);
      $_Department = $row['department'];  
      $_subject = $row['subject'];  
      $_message = $row['message'];  

    }
}

?>



 <!-- Content wrapper scroll start -->
 <div class="content-wrapper-scroll">

<!-- Content wrapper start -->
<div class="content-wrapper">

  <!-- Row start -->
  <div class="row">
    <div class="col-sm-12 col-12">

      <!-- Card start -->
      <div class="card">
        <div class="card-header">
          <div class="card-title">View support</div>
        </div>
        <div class="card-body">

          <!-- Row start -->
          <form method="POST" action="" >
          <div class="row">
            <div class="col-xxl-12 col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
              <div class="mb-3">
                <label for="inputName" class="form-label">Department</label>
                <input type="text" class="form-control" id="inputName" name="department" value="<?php echo $_Department ?>" readonly>
              </div>
            </div>
            <div class="col-xxl-12 col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
              <div class="mb-3">
                <label for="inputEmail" class="form-label">Subject</label>
                <input type="text" class="form-control" id="inputEmail" name="subject" value="<?php echo $_subject  ?>" readonly>
              </div>
            </div>
            <div class="col-xxl-12 col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
              <div class="mb-3">
                <label for="inputNumber" class="form-label">Message</label>
                <input type="text" class="form-control" id="inputNumber" name="message" value="<?php  echo $_message   ?>" readonly> 
              </div>
            </div>
           

          <!-- Form actions footer end -->

          </form>

        </div>
      </div>
      <!-- Card end -->

    </div>

  </div>
  <!-- Row end -->

</div>
<!-- Content wrapper end -->







<?php
include 'footer.php';
?>