diff --git a/patients.php b/patients.php new file mode 100644 index 0000000..9fb86be --- /dev/null +++ b/patients.php @@ -0,0 +1,64 @@ +query("SELECT id, name, mobile, created_at FROM patients WHERE clinic_id = 1 ORDER BY created_at DESC"); + $patients = $stmt->fetchAll(PDO::FETCH_ASSOC); +} catch (PDOException $e) { + // In a real app, log this error and show a user-friendly message. + error_log("DB Error: " . $e->getMessage()); +} + +?> + +
+
+

قائمة المرضى

+ + إضافة مريض جديد + +
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
#الاسمرقم الموبايلتاريخ التسجيلإجراءات
لا يوجد مرضى لعرضهم.
format('Y-m-d'); ?> + + +
+
+
+
+
+ +