Add: maestro DB - AvailableActivateDateTime

This commit is contained in:
jisangs committed 2018-07-19 10:57:04 +09:00
1 parent 0bf3adb4ed
commit c2f478c97f
5 files changed
+39 -25

No files matched your search

+5 -1
View File
@@ -7,7 +7,11 @@ include "./../setup/connect_db.php";
$maestro_id = $_POST["maestro_id"];
$query = "UPDATE moty_maestro SET ActivateStatus=1 WHERE MaestroID=?";
$query = "
UPDATE moty_maestro
SET ActivateStatus = 1, AvailableActivateDateTime = DATE_ADD(NOW(), INTERVAL 1 YEAR)
WHERE MaestroID = ?
";
$stmt = $db_conn->prepare($query);
$stmt->bind_param("i", $maestro_id);
$stmt->execute();