File manager - Edit - /home/autoph/public_html/aee/updatePost.php
Back
<?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); ?>
| ver. 1.4 |
.
| PHP 7.3.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings