File manager - Edit - /home/autoph/public_html/api/aha/insert_pwd.php
Back
<?php include '../../../cfg/ahaconn.php'; $mykey = $_GET['keyID']; //echo "Arnel " . $mykey; if($mykey =="T6e59e008b5348b452b615a3033729daae383-addTag"){ // SQL query $asaUserID = $_GET['userID']; $tag = $_GET['tag']; $chk = "SELECT * FROM `aha_pwd` WHERE `deleted` = 0 AND `aha_user_id`='$asaUserID'"; $chkCar = mysqli_query($conn,$chk); $chkCount = mysqli_num_rows($chkCar); if($chkCount > 0){ $stat="Record already exist. If you think this is an error, Please send us a message via Live Chat Support so we can assist you. Thank you!."; }else{ //SAVE AND ADD NEW VEHICLE RECORD $sql = "INSERT INTO aha_pwd (`aha_user_id`,`aha_tag`) VALUES ('$asaUserID','$tag')"; if ($conn->query($sql) === TRUE) { $stat="Record has been saved."; } else { $stat="Error, unable to save record. Please contact us via Live Chat Support. Thank you!"; } } // Output the result in JSON format header('Content-Type: application/json'); echo json_encode(["status" =>$stat]); } // Close connection $conn->close(); ?>
| ver. 1.4 |
.
| PHP 7.3.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings