format("Y-m-d"); // for viewing date only $myDate ="As of ".$toDate; $conn = mysql_connect($sqlHost, $sqlUser, $sqlPass) or die ("Couldn't connct to MySQL server on $sqlHost: ". mysql_error(). '.'); $db = mysql_select_db($sqlDatabase, $conn) or die ("Couldn't select database $sqlDatabase: ". mysql_error(). '.'); $postKey= $_REQUEST['postKeyr']; $postID= $_REQUEST['postIDr']; $userID= $_REQUEST['userIDr']; //$recordEnd= $_REQUEST['recordEnd']; if($postKey==10240911070721200106222015111){ $json = json_encode(["postID" => "$postID"]); } if($did_something === 0) { $msg = did_nothing_message; $json = json_encode(["postID" => "$postID"]); } echo $json; //echo nl2br($json); ?>