function updateComment() { $rm = new Response_Methods(); if ($_SERVER['REQUEST_METHOD'] == "GET") { $result = $rm->inValidServerMethod(); return $result; } //Check request url is https or not if (!empty($_SERVER["HTTPS"])) { if ($_SERVER["HTTPS"] !== "off") { $comment = $rm->cleanData($_POST['comment']); //Get Request From Device $commentId = $rm->cleanData($_POST['commentId']); $getArrayList = array(); //echo $ENCRYPTEDPWD = md5($PASSWORD); //echo $ENCRYPTEDPWD = base64_decode($PASSWORD); //$ENCRYPTEDPWD=$PASSWORD; if ($comment == "" || $commentId == "") { $result = $rm->fields_validation(); return $result; } else { $getInsertFieldValue['comment_text_f'] = $comment; $affectedRowsUpdateComment = $rm->update_record($getInsertFieldValue, 'comments_t', 'comment_id', $commentId); if ($affectedRowsUpdateComment > 0) { $result = $rm->updateCommentSuccessJson($commentId); return $result; } else { $result = $rm->updateCommentFailJson(); return $result; } } } else { $result = $rm->ssl_error(); return $result; } } else { $result = $rm->ssl_error(); return $result; } }