File manager - Edit - /home/autoph/public_html/tasks/updatePost.php.tar
Back
home/autoph/public_html/aee/updatePost.php 0000644 00000001621 15025010022 0014654 0 ustar 00 <?php date_default_timezone_set('Asia/Manila'); header('Content-Type: application/json'); $sqlUser = 'autoph_arnel'; $sqlDatabase = 'autoph_connect'; $sqlPass = 'Hke@2001'; $toDate = date_create() ->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); ?>