GIF89a php
Current File : /home/hencockfreshchic/public_html/app/changeDetails.php
<?php
ob_start();
ini_set('error_reporting', E_STRICT);
include("session.php");
include("connect.php");
include("libs.php");
mysqli_set_charset($conn,'utf8');
date_default_timezone_set('Asia/Kolkata');

$sqlU="SELECT * FROM `app_admin` WHERE `sr`='".$_COOKIE["user_id"]."'";
$rsU=mysqli_query($conn,$sqlU);
$rowU=mysqli_fetch_assoc($rsU);

?>
<!DOCTYPE html>
<html>

<?php include'head.php'; ?>
<body>
<?php include'header.php'; ?>
 
  <div class="container no-gutters">
    <div class="row row-spac no-gutters">
       <div class="col-md-5 no-gutters" style="margin: auto;padding: 0px;">
         <h6 class="m-2 "><i class="bi bi-pencil-square text-dark"></i> Update User Details :</h6>
        <div class="container m-0 p-0">
          <div class="row my-1">
            <div class="form-group my-1">
              <label class="form-label fw-light"><small>Recipient's Name</small></label>
              <input type="text" class="form-control py-2" name="uname" id="uname" value="<?php echo $rowU["user_name"]; ?>" placeholder="Recipient name">
            </div>
            <div class="form-group my-1">
              <label class="form-label fw-light"><small>Password </small></label>
              <input type="text" class="form-control py-2" name="password" id="password" value="<?php echo $rowU["pwdd"]; ?>" placeholder="Password">
            </div>
            <div class="form-group my-1">
              <label class="form-label fw-light"><small>Mobile Number *</small></label>
              <input type="number" class="form-control py-2" name="mobb" id="mobb" value="<?php echo $rowU["mobb"]; ?>" onkeypress="checkMobb('mobb')" placeholder="Type Here...">
            </div>
          </div>
          <button type="button" class="btn btn-sm btn-success float-start m-3" onclick="pageRedirect('myAccount.php')">BACK</button>
          <button type="button" class="btn btn-sm btn-success float-end m-3" onclick="updateUserDetails()">UPDATE</button>
        </div>
       </div>
     </div>
   </div> 
  
<?php include 'footer.php';?>

  <script>
function openNav() {
  document.getElementById("mySidebar").style.width = "250px";
  document.getElementById("main").style.marginLeft = "250px";
}

function closeNav() {
  document.getElementById("mySidebar").style.width = "0";
  document.getElementById("main").style.marginLeft= "0";
}
</script>
</body>
</html>


<div id="snackbar"><span id="snack_msgg" style="color: white"></span></div>