19 lines
517 B
PHP
19 lines
517 B
PHP
<?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;
|
|
}
|
|
|
|
}
|