<?php include_once "../database.php"; $json = file_get_contents('php://input'); $request = json_decode($json, true); $userid = isset($request["userid"]) ? $request["userid"] : ""; $agencyid = isset($request["agencyid"]) ? $request["agencyid"] : ""; echo json_encode(checkRated($userid, $agencyid));
<?php include_once "../database.php"; $result = checkRated("4", "1"); print_r($result);