korsygfhrfggfhfgfffgffg6655665dtggggggzangaiide
Elehhjhjjkjkfpf6df56fd65ffff
/
home2
/
sunpublicschools
/
public_html
/
SunShine_AdMin
/
Upload FileeE
HOME
<?php include 'header.php'; include 'config.php'; ?> <?php $com_qry = "SELECT * from h_prcess"; $com_res = mysqli_query($connect,$com_qry); if(mysqli_num_rows($com_res) > 0 ) { $com_data = mysqli_fetch_assoc($com_res); } ?> <div class="content-wrapper"> <div class="page-title"> <div> <p><i class="fa fa-eye"></i>Home Process</p> </div> </div> <div class="card"> <?php if(isset($_POST['submit'])) { $title = $_POST['title']; $title2 = $_POST['title2']; $title3 = $_POST['title3']; $title4= $_POST['title4']; $title5= $_POST['title5']; $title6= $_POST['title6']; $co_qery = "UPDATE h_prcess set title = '$title',title2 = '$title2',title3 = '$title3', title4 = '$title4',title5 = '$title5',title6 = '$title6' WHERE id = 1"; $co_res = mysqli_query($connect,$co_qery); if($co_res) { ?> <script> alert('Updated Successfully'); window.location.replace("h_prces.php"); </script> <?php } else { ?> <script> alert('Not Updated'); window.location.replace("h_prces.php"); </script> <?php } } ?> <form method="post" action="" enctype="multipart/form-data"> <div class="row"> <div class="col-md-12"> <label>About List</label> <input type="text" name="title" class="form-control" value="<?php echo $com_data['title'];?>"> </div> <div class="col-md-12"> <input type="text" name="title2" class="form-control" value="<?php echo $com_data['title2'];?>"> </div> <div class="col-md-12"> <input type="text" name="title3" class="form-control" value="<?php echo $com_data['title3'];?>"> </div> <div class="col-md-12"> <input type="text" name="title4" class="form-control" value="<?php echo $com_data['title4'];?>"> </div> <div class="col-md-12"> <input type="text" name="title5" class="form-control" value="<?php echo $com_data['title5'];?>"> </div> <div class="col-md-12"> <input type="text" name="title6" class="form-control" value="<?php echo $com_data['title6'];?>"> </div> </div> <br> <div class="row"> <div class="col-md-4"> <input type="submit" name="submit" class="btn btn-success" value="Update"> </div> </div> </form> </div> </div> <script> function fileValidation(file){ var fileInput = file.value; var allowedExtensions = /(\.jpg|\.jpeg|\.png)$/i; if(!allowedExtensions.exec(fileInput)){ alert('Please upload file having extensions .jpeg/.jpg/.png only.'); file.value = ''; file.focus(); return false; }else{ return true; } } </script> <script src="js/jquery-2.1.4.min.js"></script> <script src="js/bootstrap.min.js"></script> <script src="js/plugins/pace.min.js"></script> <script src="js/main.js"></script> <script src="//cdn.ckeditor.com/4.9.2/standard/ckeditor.js"></script> <script type="text/javascript"> CKEDITOR.replace('descp'); </script>