ok
Direktori : /proc/self/root/home2/selectio/www/y1jobportal.in/apps-api/ |
Current File : //proc/self/root/home2/selectio/www/y1jobportal.in/apps-api/update-follow-up.php |
<?php include_once('config/config.php'); include_once('config/custom-functions.php'); include 'config/send-sms.php'; $fn = new custom_functions(); /*login*/ if ((isset($_POST['type'])) && ($_POST['type'] == 'update_followup')) { if (empty(($_POST['id']))) { $response['error'] = true; $response['message'] = "id required!"; print_r(json_encode($response)); return false; exit(); } $plan_id=$_POST['plan_id']; $follow_up_id=$_POST['follow_up_id']; $id=$_POST['id']; $statement = $pdo->prepare("UPDATE `client` SET follow_up_id='".$follow_up_id."' where id=$id"); $result=$statement->execute(); if($result){ $response["error"] = false; $response["message"] = "Plab & Follow Up Selected Updated"; }else{ $response['error'] = true; $response['message'] = "Something Went Wrong..."; } print_r(json_encode($response)); }else{ $response['error'] = true; $response['message'] = "Function not Call..."; print_r(json_encode($response)); }