feat: add core backend modules, inventory services, and patch scripts for AI Pharmacy API

This commit is contained in:
2026-09-15 11:15:15 +05:30
parent 22a03043ea
commit 1f9378d96c
41 changed files with 1413 additions and 130 deletions
+11
View File
@@ -0,0 +1,11 @@
<?php
$pdo = new PDO('mysql:host=127.0.0.1;dbname=telegaruda_v2;charset=utf8', 'root', '');
$subjectRef = "vallika v";
$stmt = $pdo->prepare("SELECT * FROM users WHERE LOWER(CONCAT(first_name, ' ', last_name)) = ?");
$stmt->execute([strtolower(trim($subjectRef))]);
$row = $stmt->fetch(PDO::FETCH_ASSOC);
if ($row) {
echo "Found patient ID: " . $row['id'] . "\n";
} else {
echo "Patient not found by name.\n";
}