Added Reminder Model and dummy call

This commit is contained in:
Olusesan Ameye
2021-02-28 13:31:41 -05:00
parent 67f744c1f2
commit f654ffd6fd
8 changed files with 343 additions and 182 deletions
@@ -0,0 +1,18 @@
<?php
class Reminder_model extends CI_Model {
function __construct() {
}
public function getPatientReminderList($practice_id, $patient_id) {
$mysql = "SELECT description, start_date,end_date FROM members_reminders WHERE member_id =1 AND practice_id = 0 AND status = 1 ORDER BY added DESC LIMIT 5";
$query = $this->db->query($mysql);
$num = $query->num_rows();
$data["patient_reminder_list"] = $query->result();
return $data;
}
}