×
prepare($sql); $stmt->bind_param("s", $status); $stmt->execute(); $result = $stmt->get_result(); if ($result->num_rows > 0) { // Loop through each row while ($row = $result->fetch_assoc()) { $eft_id = $row['eft_id']; $file_name = str_replace(' ', '_', $eft_id); $eft_user = $row['user_id']; $eft_amount = $row['amount']; $eft_description = $row['description']; // Output the HTML structure with dynamic data echo '
' . htmlspecialchars($eft_description) . '
' . getFullName($eft_user) . '
'; } } else { echo '

There are no pending payments for processing.

'; } // Close connection $conn->close(); ?>