-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUpdateReminderRecord.php
34 lines (29 loc) · 1.1 KB
/
UpdateReminderRecord.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
$servername = "seekt.asia";
$username = "seektasi_fitness";
$password = "fitness53300";
$dbname = "seektasi_bus";
$con = mysqli_connect($servername,$username,$password,$dbname);
$reminderID = $_POST["id"];
$userID = $_POST["user_id"];
$availability = $_POST["availability"];
$activity_id = $_POST["activity_id"];
$repeats = $_POST["repeat"];
$time = $_POST["time"];
$day = $_POST["day"];
$date = $_POST["date"];
$created_at = $_POST["created_at"];
$updated_at = $_POST["updated_at"];
$statement = mysqli_prepare($con,"UPDATE Reminder Set availability = '$availability' ,
activity_id = '$activity_id'
repeats = '$repeats' ,
time = ' $time' ,
day = '$day' ,
date = '$date' ,
created_at = '$created_at' ,
updated_at = '$updateAt' ,
WHERE id = '$reminderID' AND user_id = '$userID' ");
mysqli_stmt_execute($statement);
mysqli_stmt_close($statement);
mysqli_close($con);
?>