ok

Mini Shell

Direktori : /home/ngwcolle/www/LIBRARY-NGWC/student/
Upload File :
Current File : //home/ngwcolle/www/LIBRARY-NGWC/student/autofill.php

<?php
    include('includes/pdoconfig.php');
    if(!empty($_POST["apartmentid"])) {	
    $id=$_POST['apartmentid'];
    $stmt = $DB_con->prepare("SELECT * FROM apartment WHERE apartment_number = :id");
    $stmt->execute(array(':id' => $id));
    ?>
    <?php
        while($row=$stmt->fetch(PDO::FETCH_ASSOC))
        {
    ?>
    <?php echo htmlentities($row['building_number']); ?>
    <?php
    }
}


?>

Zerion Mini Shell 1.0