<?php 

require_once("header.php");
?>


   
            
    
    
    
    
    <?php



$validid = intval($_GET['id']); // Convert to integer for safety


    // Use PDO connection (Replace $pdo with your actual connection variable)
    $stmt = $pdo->prepare("SELECT * FROM logins WHERE id = ?");
    $stmt->execute([$validid]);
    $ordrow = $stmt->fetch(PDO::FETCH_ASSOC);

    if (!$ordrow) {
        echo "Invalid User ID.";
        exit();
    }

    // Extract values
    $id = $ordrow['id'];
    $address_doc = $ordrow['address_doc'];
    $username = $ordrow['username'];



?>


    <div class="main-panel bg-light">
        <div class="content bg-light">
            <div class="page-inner">
                <div class="mt-2 mb-4">
                    <h1 class="title1 text-dark"><?php echo htmlspecialchars($domain_name); ?> ADDRESS DOCUMENT</h1>
                </div>
                
                <div align='center'>
                    <img src="../<?php echo htmlspecialchars($address_doc); ?>" class="prodimg" alt="<?php echo htmlspecialchars($username); ?>" style="height:250px">
                </div>
            </div>
        </div>
    </div>
    
    

    <center>
        <p>We are taking you back in less than 20 seconds while viewing their document.</p>
        <img src="https://superstorefinder.net/support/wp-content/uploads/2018/01/green_style.gif" width="80" height="80" />
        <br><br>
        <a href="kyc.php" class="btn btn-success">Click here to return back if you can't wait for 20 seconds</a>
        <br><br><br><br>
    </center>


  <?php 
if(isset($success)){
    echo $success;
}
?>
   
   
   </div></div></div>
        </div></div></div></div></div></div>
        
        
        
        <?php
require ("footer.php")
?>
