korsygfhrfggfhfgfffgffg6655665dtggggggzangaiide
Elehhjhjjkjkfpf6df56fd65ffff
/
home2
/
sunpublicschools
/
public_html
/
SunShine_AdMin
/
Upload FileeE
HOME
<?php include 'header.php'; include 'config.php';?> <?php $con_qry = "SELECT * from contact"; $res = mysqli_query($connect,$con_qry); if(mysqli_num_rows($res) > 0 ) { $cons_data = mysqli_fetch_assoc($res); } ?> <div class="content-wrapper"> <div class="page-title"> <div> <p><i class="fa fa-phone"></i> Contact</p> </div> </div> <br> <?php if(isset($_POST['submit'])) { $address = mysqli_real_escape_string($connect,$_POST['address']); $mobile = mysqli_real_escape_string($connect,$_POST['mobile']); $mobile2 = mysqli_real_escape_string($connect,$_POST['mobile2']); $email = mysqli_real_escape_string($connect,$_POST['email']); $email2 = mysqli_real_escape_string($connect,$_POST['email2']); $fb = mysqli_real_escape_string($connect,$_POST['fb']); $lnk = mysqli_real_escape_string($connect,$_POST['lnk']); $yu = mysqli_real_escape_string($connect,$_POST['yu']); $ins = mysqli_real_escape_string($connect,$_POST['ins']); $query = "UPDATE contact set address = '$address',mobile = '$mobile' ,mobile2 = '$mobile2' ,email = '$email', email2 = '$email2',fb = '$fb',lnk = '$lnk',ins = '$ins',yu = '$yu' WHERE id = 1"; $con_ress = mysqli_query($connect,$query); if($con_ress) { ?> <script> alert('Updated Successfully'); window.location.replace("contact.php"); </script> <?php } } ?> <div class="card"> <form action="" method="post" enctype="multipart/form-data"> <h2 style="color:red;text-align: center;">Chikkabommasandra, Yelahanka New Town, Bengaluru.</h2> <div class="row"> <div class="col-md-12"> <label>Address</label> <textarea name="address" rows="5" class="form-control"><?php echo $cons_data['address']; ?></textarea> </div> </div> <br> <div class="row"> <div class="col-md-12"> <label>Mobile</label> <input type="text" name="mobile" class="form-control" value="<?php echo $cons_data['mobile']; ?>"> </div> </div> <br> <div class="row"> <div class="col-md-12"> <label>Mobile2</label> <input type="text" name="mobile2" class="form-control" value="<?php echo $cons_data['mobile2']; ?>"> </div> </div> <br> <br> <div class="row"> <div class="col-md-12"> <label>Email</label> <input type="text" name="email" class="form-control" value="<?php echo $cons_data['email']; ?>"> </div> </div> <br> <div class="row"> <div class="col-md-12"> <label>Email 2</label> <input type="text" name="email2" class="form-control" value="<?php echo $cons_data['email2']; ?>"> </div> </div> <br> <div class="row"> <div class="col-md-12"> <label>Facebook</label> <input type="text" name="fb" class="form-control" value="<?php echo $cons_data['fb']; ?>"> </div> </div> <br> <div class="row"> <div class="col-md-12"> <label>Linkdln</label> <input type="text" name="lnk" class="form-control" value="<?php echo $cons_data['lnk']; ?>"> </div> </div> <br> <div class="row"> <div class="col-md-12"> <label>Instagram</label> <input type="text" name="ins" class="form-control" value="<?php echo $cons_data['ins']; ?>"> </div> </div> <br> <div class="row"> <div class="col-md-12"> <label>Youtube</label> <input type="text" name="yu" class="form-control" value="<?php echo $cons_data['yu']; ?>"> </div> </div> <br> <div class="row"> <div class="col-md-4"> <input type="submit" name="submit" value="Update" class="btn btn-success"> </div> </div> </form> <hr> <?php if(isset($_POST['submit2'])) { $address2 = mysqli_real_escape_string($connect,$_POST['address2']); $mobile3 = mysqli_real_escape_string($connect,$_POST['mobile3']); $query = "UPDATE contact set address2 = '$address2',mobile3 = '$mobile3' WHERE id = 1"; $con_ress = mysqli_query($connect,$query); if($con_ress) { ?> <script> alert('Updated Successfully'); window.location.replace("contact.php"); </script> <?php } } ?> <form action="" method="post" enctype="multipart/form-data"> <h2 style="color:red;text-align: center;">Ananthapura, Ramgondanahalli, Main Road, Yelahanka, Bengaluru</h2> <div class="row"> <div class="col-md-12"> <label>Address </label> <textarea name="address2" rows="5" class="form-control"><?php echo $cons_data['address2']; ?></textarea> </div> </div> <br> <div class="row"> <div class="col-md-12"> <label>Mobile</label> <input type="text" name="mobile3" class="form-control" value="<?php echo $cons_data['mobile3']; ?>"> </div> </div> <br> <div class="row"> <div class="col-md-4"> <input type="submit" name="submit2" value="Update" class="btn btn-success"> </div> </div> </form> </div> </div> <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>