prepare($query)) { // Bind the user_id parameter to the query $stmt->bind_param("i", $user_id); // Execute the query $stmt->execute(); // Bind the results to variables $stmt->bind_result($payment_amount, $membership_start_date, $membership_end_date, $eft_id); // Fetch the data if ($stmt->fetch()) { // Values are now assigned to $payment_amount, $membership_start_date, and $membership_end_date } else { // Handle case where no records are found $error_message = "No records found for the given user ID."; } // Close the statement $stmt->close(); } else { // Handle query preparation failure $error_message = "Query preparation failed: " . $conn->error; } } else { // Handle case where user_id is not found in session $error_message = "User ID not found in session."; } // Get user's email $sql = "SELECT email FROM users WHERE user_id = ?"; $stmt = $conn->prepare($sql); if (!$stmt) { die("Prepare failed: " . $conn->error); } $stmt->bind_param("i", $user_id); $stmt->execute(); $stmt->bind_result($user_email); $stmt->fetch(); $stmt->close(); $conn->close(); ?> 'index.php'], ['Membership' => 'membership.php']]; require_once('components/banner.php'); ?>
New Membership Payment: Membership Start Date: ' . $membership_start_date . '
Membership Renewal Date: ' . $membership_end_date . ''; ?>

Your invoice has been sent to . Please upload your proof of payment below.

Payment Details:

The Four Wheel Drive Club of Southern Africa
FNB
Account Number: 58810022334
Branch code: 250655
Reference:
Amount: R

Submit Proof of Payment
About