Server : Apache
System : Linux 8.167.178.68.host.secureserver.net 4.18.0-553.158.1.el8_10.x86_64 #1 SMP Wed Aug 26 03:18:33 EDT 2026 x86_64
User : avscylinder ( 1028)
PHP Version : 8.1.34
Disable Function : NONE
Directory :  /home/avscylinder/public_html/admin/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]


Current File : /home/avscylinder/public_html/admin/admin/why-choose-us.php
<?php include('site-header.php'); ?>
  <!-- end of LOGO CONTAINER -->
  <!-- - - - - - - - - - - - - -->
  <!-- start of SIDEBAR        -->
  <!-- - - - - - - - - - - - - -->
  <?php include('left-nevigation.php'); ?>
  <!-- - - - - - - - - - - - - -->
  <!-- end of SIDEBAR          -->
  <!-- - - - - - - - - - - - - -->
  <main id="playground">
  <script src="ckeditor/ckeditor.js"></script>
    <!-- - - - - - - - - - - - - -->
    <!-- start of TOP NAVIGATION -->
    <!-- - - - - - - - - - - - - -->
    <nav class="navbar navbar-top navbar-static-top">
      <div class="container-fluid">
        <!-- sidebar collapse and toggle buttons get grouped for better mobile display -->
        <div class="navbar-header nav">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-top"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button>
        </div>
        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="navbar-top">
          <ul class="nav navbar-nav navbar-right">
            <li class="dropdown user-profile"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
              <div class="user-img-container"> <img src="demofiles/demoimage.gif" alt=""> </div>
              Sign Out <span class="chat-status success"></span> </a> </li>
          </ul>
        </div>
      </div>
      <!-- end of container-fluid -->
    </nav>
    <?php
    extract($_POST);
    $fnn = $_FILES['file_name']['name'];
    $fnn1 = rand()."".$fnn;
    if(isset($sub))
    {
      if($_FILES['file_name']['name']!="")
      {
        echo $fnnn;
        $sel = "UPDATE tbl_stativ_pages SET why_desc='$why_desc',why_image='$fnn1' WHERE id=3";
        if(mysqli_query($link,$sel))
        {
          move_uploaded_file($_FILES['file_name']['tmp_name'], "../about-image/$fnn1");
        }
        else
        {
          echo "Not Insert";
        }
      }
      else
      {
        $sel = "UPDATE tbl_stativ_pages SET why_desc='$why_desc' WHERE id=3";
        mysqli_query($link,$sel);
      }
    }
?>
    <section id="page-title" class="row">
      <div class="col-md-8">
        <h1>Why Choose Us</h1>
        <p class="lead">Update your choose us below</strong>.</p>
      </div>
      <div class="col-md-4">
        <ol class="breadcrumb pull-right no-margin-bottom">
          <li><a href="javascript:void();">Why Choose Us</a></li>
          <li class="active">Update About</li>
        </ol>
      </div>
    </section>
    <!-- / PAGE TITLE -->
    <?php
    $que = "select * from tbl_stativ_Pages";
    $run=mysqli_query($link,$que);
    $result= mysqli_fetch_assoc($run);
    ?>
    <div class="container-fluid">
      <form method='post' enctype="multipart/form-data">
        <div class="col-md-6">
        <div class="form-group">
            <img src="../about-image/<?=$result['why_image'];?>" width="100%" height="350"><br>
            <input type="file" name="file_name">
        </div>
        </div>
        <div class="col-sm-6">
          <div class="form-group">
            <label>Description:</label>
            <textarea  id="ckeditor1" name="why_desc"><?=$result['why_desc'];?></textarea>
          </div>
        </div>
        <div class="col-md-12">
          <div class="text-center">
            <input type="submit" name="sub" class="btn btn-primary">
          </div>
        </div>
      </form>
    </div>
    <!--/container-->
    <script>
      CKEDITOR.replace(ckeditor1)
	  </script>
    <!-- / container-fluid -->
 <?php include('site-footer.php'); ?>

F1le Man4ger