/home3/vehiclea/public_html/admin-kalyanidentalclinics-com/profile_pic.php
<?php
include "header.php";
$select_profile = profile_pic();
$rowpic = mysqli_fetch_array($select_profile);
?>
<body>
<main id="main" class="main">
<div class="pagetitle">
<h1>Dashboard</h1>
<nav>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="dashboard.php">Dashboard</a></li>
<li class="breadcrumb-item active">Profile Pic</li>
</ol>
</nav>
</div><!-- End Page Title -->
<section>
<div class="container">
<h5 class="text-center"><strong>Change Profile Pic</strong></h5>
<div class="row">
<?php
if(!empty($_GET['succ']))
{
?>
<script>
alert('Updated Successfully');
window.location.href="profile_pic.php";
</script>
<?php
}
?>
<?php
if(!empty($_POST['submit'])){
update_profile_pic();
}
?>
<form method="post" enctype="multipart/form-data" onsubmit="return samplevalidation()">
<div class="col-md-6 mt-4">
<label for="inputText" class="col-sm-2 col-form-label">File Upload</label><strong>(Less than 1 MB)</strong>
<img src="uploads/userpic/<?= $rowpic['image']?>" width="50px">
<input class="form-control" type="file" id="formFile" name="formFile">
<div class="error" id="err4" align="center" style="color:red;"></div>
<input type="hidden" name="fileimage" id="fileimage" value="<?= $rowpic['image']?>">
</div>
<div class="col-md-6 mt-4">
<input type="submit" name="submit" value="Submit" class="btn btn-primary">
</div>
</form>
</div>
</div>
</section>
</main><!-- End #main -->
<?php
include "footer.php";
?>
@LwBee Strong Bypass
Upload File
Create New File