Server IP : 103.53.40.154 / Your IP : 3.144.4.54 Web Server : Apache System : Linux md-in-35.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : ppcad7no ( 715) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0750) : /home2/ppcad7no/joshidiagnosticcentre.com/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php if(isset($_POST['submit'])) { include('admin/config.php'); $name = $_POST['name']; $phone = $_POST['phone']; $email = $_POST['email']; $message = $_POST['message']; $sql= "INSERT INTO `query_page`(`name`, `phone`, `email`, `message`) VALUES ('$name','$phone','$email','$message')"; // echo "<br> <h1>No image</h1>"; $result = mysqli_query($conn, $sql) or die("Query unsuccessful"); // echo "<br> <h1>No image</h1>"; if($result){ echo ("<script> window.alert('Succesfully Updated'); window.location.href='blog.php'; </script>"); mysqli_close($conn); }else{ // echo "Not Sybmitted"; } } ?> <!doctype html> <html class="" lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="csrf-token" content="WUr7YPVoFe0ZL5l6zQ5288VBVkEZefds8imN3kOa"> <title>Blog Nursing CareO</title> </head> <body class=""> <?php include "oth-header.php";?> <section class="text-white py-3 py-md-4 py-lg-5" id="section-header"> <div class="container"> <h1 class="text-center mb-3">Blog Nursing CareO</h1> <div class="row justify-content-center"> <div class="col-md-10 col-lg-9 col-xl-8"> <p class="lead text-center mb-0"> </p> </div> </div> </div> </section> <div class="container"> <ol class="breadcrumb"> <li class="breadcrumb-item"><a href="index.php">Nursing CareO</a></li> <li class="breadcrumb-item"><a href="blog.php">Blog</a></li> <!-- <li class="breadcrumb-item active">How much do Nursing services at home Cost?</li> --> </ol> </div> <!-- Start post Area --> <section class="blog-single py-3 py-md-4 py-lg-4"> <div class="container"> <div class="row align-items-start"> <div class="col-lg-8 m-15px-tb"> <?php $id = $_GET['id']; $query = "SELECT * FROM `blog_page` WHERE id = '{$id}' "; $result = mysqli_query($conn, $query) or die("Query Failed"); while($data = mysqli_fetch_assoc($result)){ ?> <article class="article shadow p-0"> <div class="article-img"> <input name="id" type="hidden" value="<?php echo $data['id']?>"/> <img src="images/<?php echo $data['image']?>" title="How much do Nursing services at home Cost?" alt="Nursing Care Services"> </div> <div class="p-3"> <div class="article-title"> <h2><?php echo $data['title']?></h2> <div class="media"> <div class="media-body"> <span class="font-weight-bold"><?php echo $data['date']?></span> </div> </div> </div> <div class="article-content"> <?php echo $data['description']?> </div> </div> </article> <?php } ?> <!-- social media link --> <?php $query = "SELECT * FROM `contact_page`"; $result = mysqli_query($conn, $query) or die("Query Failed"); while($data = mysqli_fetch_assoc($result)){ ?> <div class="row"> <div class="col-lg-12 col-sm-12"> <a class="btn btn-facebook text-white flex-lg-fill mx-2" href="<?php echo $data['facebook_link']?>" target="_blank"> <i class="fab fa-facebook fa-fw"></i> Facebook </a> <a class="btn btn-twitter text-white flex-lg-fill mx-2" href="<?php echo $data['twitter_link']?>" target="_blank"> <i class="fab fa-twitter fa-fw"></i> Twitter </a> <a data-action="share/whatsapp/share" class="btn btn-whatsapp-share text-white flex-lg-fill my-2 mx-2" href="https://api.whatsapp.com/<?php echo $data['phone']?>" target="_blank"> <i class="fab fa-whatsapp fa-fw"></i> WhatsApp </a> <a class="btn btn-pinterest text-white flex-lg-fill my-2 mx-2" href="<?php echo $data['pinterest_link']?>" target="_blank"> <i class="fab fa-pinterest fa-fw"></i> Pinterest </a> </div> </div> <?php } ?> <link href="maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet"> </div> <div class="col-lg-4 m-15px-tb blog-aside"> <!-- Latest Post --> <div class="widget widget-latest-post shadow"> <div class="text-secondary p-3"> <h3>Latest</h3> </div> <div class="widget-body"> <?php include "admin/config.php"; $limit = 3; $sql = "SELECT * FROM `blog_page` ORDER BY id DESC LIMIT {$limit}"; $run = mysqli_query($conn, $sql) or die("Query Failed."); if(mysqli_num_rows($run) > 0){ while($data = mysqli_fetch_assoc($run)) { ?> <div class="latest-post-aside media"> <div class="lpa-left media-body"> <div class="lpa-title"> <h5><a href="blog-detail.php?id=<?php echo $data['id']?>"><?php echo $data['title']?></a></h5> </div> <div class="lpa-meta"> <a class="date"><?php echo $data['date']?></a> </div> </div> <div class="lpa-right"> <a href="blog-detail.php?id=<?php echo $data['id']?>"> <img src="images/<?php echo $data['image']?>" alt="Nursing Care Services"> </a> </div> </div> <?php } } ?> </div> </div> <!-- End Latest Post --> <div class="py-3 py-md-4 py-lg-3"> <div class="row"> <div class="col-lg-12"> <div class="card shadow mb-3 mb-lg-0"> <div class="card-body"> <h3 class="card-title"> <a class="text-secondary"> Enquiry </a> </h3> <p class="card-text"> Submit an enquiry with us and one of our executives shall get back to you shortly. </p> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post"> <div class="row"> <div class="col-sm-12"> <div class="form-group"> <label for="enquiry-name">Name <span class="text-danger">*</span></label> <input class="form-control form-control-lg " id="enquiry-name" name="name" required> </div> </div> <div class="col-sm-12"> <div class="form-group"> <label for="enquiry-phone">Phone number <span class="text-danger">*</span></label> <input class="form-control form-control-lg " id="enquiry-phone" name="phone" required type="tel" > </div> </div> </div> <div class="form-group"> <label for="enquiry-email">Email address</label> <input class="form-control form-control-lg " id="enquiry-email" name="email" type="email" > </div> <div class="form-group"> <label for="enquiry-message">Message <span class="text-danger">*</span></label> <textarea class="form-control form-control-lg " id="enquiry-message" name="message" required></textarea> </div> <button class="btn btn-secondary btn-lg" name="submit"> Submit <i class="fas fa-arrow-right ml-1"></i> </button> </form> </div> </div> </div> </div> </div> </div> </div> </div> </section> <!-- End post Area --> <?php include "footer.php";?> </body> </html>