prepare("select * from 3001geoapp"); //$sql->execute(); //$row = $sql->fetch(); //echo '
';
//print_r($row);
//echo '
'; //echo json_encode($row); //$chris = json_decode(urldecode($_POST['json'])); //php://input returns all the raw data after the HTTP-headers of the request, regardless of the content type. //$params = urldecode(file_get_contents('php://input')); $params = file_get_contents('php://input'); echo $params; //var_dump($params); /*$paramsarr = explode('=',$params); $newparams = stripslashes($paramsarr[1]); echo substr(0,5,$newparams);*/ //header("Content-type: text/plain"); /*$params = json_decode(urldecode(file_get_contents('php://input')),true); /* foreach($params as $element){ $adam .= $element; } */ //$value = json_decode(urldecode($_POST['json'])); /* $clean = $params->msg; echo $clean; $fh = fopen("json.txt",w); fwrite($fh,$clean); fclose($fh); mail('kdsecor@gmail.com','test',$clean); */ ?>