connect_error) die("Connection failed: " . $conn->connect_error); $student_phone = $_GET['student_phone'] ?? ''; $landlord_phone = $_GET['landlord_phone'] ?? ''; $proof_sql = "SELECT Payment_proof FROM Temp_Payment_proof WHERE Student_phone = ? AND Landlord_phone = ?"; $stmt = $conn->prepare($proof_sql); $stmt->bind_param("ss", $student_phone, $landlord_phone); $stmt->execute(); $result = $stmt->get_result(); $payment_proof = ''; if ($row = $result->fetch_assoc()) { $payment_proof = $row['Payment_proof']; } else { echo "No payment proof found."; exit; } ?>