updates
This commit is contained in:
@@ -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) . "')";
|
||||
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user