kohjhjhصثقص5572lllllllldfgddfgصثقffgggfffgfgfgdfgdg
Ele57885fddfg872llll82ddfgdfgdfgdfgdfgfgfggffggfgfgfghgقفغفغفقhfg555434536
/
home3
/
oraclepublicscho
/
public_html
/
Oracle_Cpanel
/
Upload FileeE
HOME
<?php include 'header.php'; include 'config.php'; ?> <link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"> <?php $com_qry = "SELECT * from factul_l "; $com_res = mysqli_query($connect,$com_qry); if(mysqli_num_rows($com_res) > 0 ) { $com_data = mysqli_fetch_assoc($com_res); } ?> <main id="main" class="main"> <div class="pagetitle"> <h1>Faculty Details</h1> <nav> <ol class="breadcrumb"> <li class="breadcrumb-item"><a href="index">Home</a></li> <li class="breadcrumb-item">Faculty Details</li> </ol> </nav> </div><!-- End Page Title --> <section class="section"> <div class="row"> <div class="col-lg-12"> <div class="card"> <div class="card-body"> <h5 class="card-title"> Faculty Details</h5> <?php if(isset($_POST['submit'])) { $title = $_POST['title']; $title2 = $_POST['title2']; $title3 = $_POST['title3']; $title4 = $_POST['title4']; $title5 = $_POST['title5']; $descp = mysqli_real_escape_string($connect,$_POST['descp']); $descp2 = mysqli_real_escape_string($connect,$_POST['descp2']); $descp3 = mysqli_real_escape_string($connect,$_POST['descp3']); $descp4 = mysqli_real_escape_string($connect,$_POST['descp4']); $descp5 = mysqli_real_escape_string($connect,$_POST['descp5']); $co_qery = "UPDATE factul_l set title = '$title', title2 = '$title2', title3 = '$title3', title4 = '$title4', title5 = '$title5', descp = '$descp', descp2 = '$descp2', descp3 = '$descp3', descp4 = '$descp4', descp5 = '$descp5' WHERE id = '1'"; $co_res = mysqli_query($connect,$co_qery); if($co_res) { ?> <script> alert('Updated Successfully'); window.location.replace("factul_l"); </script> <?php } else { ?> <script> alert('Not Updated'); window.location.replace("factul_l"); </script> <?php } } ?> <!-- Vertical Form --> <form class="row g-3" method="post" enctype="multipart/form-data"> <div class="col-12"> <label for="inputNanme4" class="form-label">Name</label> <input type="text" class="form-control" name="title" value="<?php echo $com_data['title'];?>" id="inputNanme4"> </div> <div class="col-12"> <label for="inputNanme4" class="form-label">Description</label> <textarea name="descp" rows="5" id="descp" class="form-control"> <?php echo $com_data['descp'];?></textarea> </div> <div class="col-12"> <input type="text" class="form-control" name="title2" value="<?php echo $com_data['title2'];?>" id="inputNanme4"> </div> <div class="col-12"> <label for="inputNanme4" class="form-label">Description</label> <textarea name="descp2" rows="5" id="descp2" class="form-control"> <?php echo $com_data['descp2'];?></textarea> </div> <div class="col-12"> <input type="text" class="form-control" name="title3" value="<?php echo $com_data['title3'];?>" id="inputNanme4"> </div> <div class="col-12"> <label for="inputNanme4" class="form-label">Description</label> <textarea name="descp3" rows="5" id="descp3" class="form-control"> <?php echo $com_data['descp3'];?></textarea> </div> <div class="col-12"> <input type="text" class="form-control" name="title4" value="<?php echo $com_data['title4'];?>" id="inputNanme4"> </div> <div class="col-12"> <label for="inputNanme4" class="form-label">Description</label> <textarea name="descp4" rows="5" id="descp3" class="form-control"> <?php echo $com_data['descp4'];?></textarea> </div> <div class="col-12"> <input type="text" class="form-control" name="title5" value="<?php echo $com_data['title5'];?>" id="inputNanme4"> </div> <div class="col-12"> <label for="inputNanme4" class="form-label">Description</label> <textarea name="descp5" rows="5" id="descp3" class="form-control"> <?php echo $com_data['descp5'];?></textarea> </div> <div class="text-left"> <button type="submit" name="submit" class="btn btn-primary">Update</button> </div> </form><!-- Vertical Form --> </div> </div> </div> </div> </section> </main><!-- End #main --> <a href="#" class="back-to-top d-flex align-items-center justify-content-center"><i class="bi bi-arrow-up-short"></i></a> <script> function fileValidation(file){ var fileInput = file.value; var allowedExtensions = /(\.jpg|\.jpeg|\.png|\.jfif)$/i; if(!allowedExtensions.exec(fileInput)){ alert('Please upload file having extensions .jpeg/.jpg/.png/.jfif only.'); file.value = ''; file.focus(); return false; }else{ return true; } } </script> <!-- Vendor JS Files --> <script src="assets/vendor/apexcharts/apexcharts.min.js"></script> <script src="assets/vendor/bootstrap/js/bootstrap.bundle.min.js"></script> <script src="assets/vendor/chart.js/chart.umd.js"></script> <script src="assets/vendor/echarts/echarts.min.js"></script> <script src="assets/vendor/quill/quill.min.js"></script> <script src="assets/vendor/simple-datatables/simple-datatables.js"></script> <script src="assets/vendor/tinymce/tinymce.min.js"></script> <script src="assets/vendor/php-email-form/validate.js"></script> <!-- Template Main JS File --> <script src="assets/js/main.js"></script> </body> </html>