This commit is contained in:
2023-02-17 23:32:05 -05:00
parent 9566b81f40
commit b5736e8121
7 changed files with 99 additions and 32 deletions
+18 -1
View File
@@ -124,14 +124,31 @@ class myfitUserReminders extends baseModel
$end_date = $in['end_date'];
$notes = $in['notes'];
$inData = [
'description'=>$description,
'category'=>$category,
'mode'=>$mode,
'start_date'=>$start_date,
'end_date'=>$end_date
];
$inWhere=[
'member_id' =>$member_id,
'uuid'=> $uuid
];
$ret11 = $this->update_db($inData,$inWhere, 'members_reminders');
$sqlQ = "SELECT * FROM members_reminders WHERE member_id = $member_id AND uuid ='$uuid' ";
$query = $this->db->query($sqlQ);
$updated_reminder = $query->getResultArray();
return [];
return [
'updated_reminder' => $updated_reminder
];
}
}
/*
public function update_db($UupdateDataArray,$whereAray, $updateTable)
$sql = "INSERT INTO table (title) VALUES('" . $db->escapeString($title) . "')";
*/