<?php
require_once '../includes/DbOperation.php';
function isTheseParameterAvailable($params){
$availble=true;
$missingParams="";
foreach($params as $param) {
if(!isset($_post[$param]) || strlen($_post[$param]) <=0) {
$availble=false;
$missingParams=$missingParams. ", ".$param;
}
}
if(!$availble){
$response=array();
$response['error']=true;
$response['message']='Parameters '.$missingParams.' missing';
echo json_encode($response);
die();
}
}
$response=array();