/home/hdwebsolution/public_html/ns-interior/admin-pages/update-social.php
<?php include('site-header.php'); ?>
  <!-- end of LOGO CONTAINER -->
  <!-- - - - - - - - - - - - - -->
  <!-- start of SIDEBAR        -->
  <!-- - - - - - - - - - - - - -->
  <?php include('left-nevigation.php'); ?>
  <!-- - - - - - - - - - - - - -->
  <!-- end of SIDEBAR          -->
  <!-- - - - - - - - - - - - - -->

  <main id="playground">
    <!-- - - - - - - - - - - - - -->
    <!-- start of TOP NAVIGATION -->
    <!-- - - - - - - - - - - - - -->
     <?php include('site-top-header.php'); ?>
    <!-- - - - - - - - - - - - - -->
    <!-- end of TOP NAVIGATION   -->
    <!-- - - - - - - - - - - - - -->
    <!-- PAGE TITLE -->

<?php 
if(isset($_REQUEST['Updt']))
{
        $fb_add=$_REQUEST['fb_add']; 
        $twitter_add=$_REQUEST['twitter_add']; 
        $google_add=$_REQUEST['google_add']; 
        $linkdn_add=$_REQUEST['linkdn_add']; 

        $sqlUp ="UPDATE `tbl_social_media` SET 
                        `fb_add`='$fb_add',
                        `twitter_add`='$twitter_add',
                        `google_add`='$google_add',
                        `linkdn_add`='$linkdn_add'
                         WHERE social_id='1'";

      
      if(mysqli_query($link,$sqlUp))
        {
           $img = "<p style='color:green;'>update successfully!!!!!</p>";
        }
}
?>
<?php
$sql="select * from tbl_social_media where social_id='1'";
$data=mysqli_query($link,$sql);
$result=mysqli_fetch_array($data);
?>    <section id="page-title" class="row">
      <div class="col-md-8">
        <h1>Social Media</h1>
        <p class="lead">Update your social media links</strong>.</p>
        <?=$img;?>
      </div>
      <div class="col-md-4">
       <!--  <ol class="breadcrumb pull-right no-margin-bottom">
          
          <li><a href="dashboard.html">Dashboard</a></li>
          <li class="active">Update Social Media</li>
        </ol> -->
      </div>
    </section>
    <!-- / PAGE TITLE -->
    <div class="container-fluid">
      <div class="row">
        <div class="col-md-9">
          <div class="panel-body">
            <form method="post">
              <div class="form-group">
                <label for="">Facebook</label>
                <input type="text" class="form-control" id="" name="fb_add" value="<?php echo $result['fb_add']; ?>" placeholder="Enter Your Facebook Link">
              </div>
              
              <div class="form-group">
                <label for="">Twitter</label>
                <input type="text" class="form-control" id="" name="twitter_add" value="<?php echo $result['twitter_add']; ?>" placeholder="Enter Your Twitter Link">
              </div>
              <div class="form-group">
                <label for="">Linkedin</label>
                <input type="text" class="form-control" id="" name="google_add" value="<?php echo $result['google_add']; ?>" placeholder="Enter Your Linkedin Link">
              </div>
              <div class="form-group">
                <label for="">Instagram</label>
                <input type="text" class="form-control" id="" name="linkdn_add" value="<?php echo $result['linkdn_add']; ?>" placeholder="Enter Your Instagram Link">
              </div> 
    
                
          </div>
        </div>
      </div>
      <div class="panel-footer text-center"> <button class="btn btn-primary" name="Updt">Submit</button> </div>
       </form>
    </div>
    <!-- / container-fluid -->
<?php include('site-footer.php'); ?>