Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require '../dbcon.php';
- $identificacion = $_GET['identificacion'];
- $sql = "SELECT * FROM afiliados WHERE identificacion = '$identificacion'";
- $resultado = $connection->query($sql);
- $row = $resultado->fetch_array(MYSQLI_ASSOC);
- $sql = "SELECT * FROM enemar WHERE afiliado = '$identificacion'";
- $resultado = $connection->query($sql);
- $row1 = $resultado->fetch_array(MYSQLI_ASSOC);
- if ($estado='pagado'){$text_estado="Pagada";$label_class=' btn-success';}
- else{$text_estado="Pendiente";$label_class=' btn-warning';}
- ?>
- <body>
- <div class="container pt-5" >
- <h3 class="text-center ">Datos</h3><br>
- Identificacion: <strong><?php echo $row['identificacion']; ?></strong>
- Nombre Completo: <strong><?php echo $row['nombres']." ".$row['apellidos']; ?></strong><hr>
- <h3 class="text-center ">Pagos-Periodo</h3><br>
- Enero-marzo: <strong><span class="btn <?php echo $label_class;?>">
- <?php echo $text_estado; ?></span></strong><hr>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement