<?php
$data = json_decode(file_get_contents("php://input"),true);

$sql="UPDATE 
    reminder_info 
SET 
    date_end=IF(isnull(date_end), now(), null)  
WHERE
id=".$data[0]["id"];
//echo $sql;
?>
