Advertisement
Guest User

Untitled

a guest
Mar 20th, 2019
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. <?php
  2. require '../dbcon.php';
  3.  
  4. $identificacion = $_GET['identificacion'];
  5.  
  6. $sql = "SELECT * FROM afiliados WHERE identificacion = '$identificacion'";
  7. $resultado = $connection->query($sql);
  8. $row = $resultado->fetch_array(MYSQLI_ASSOC);
  9.  
  10. $sql = "SELECT * FROM enemar WHERE afiliado = '$identificacion'";
  11. $resultado = $connection->query($sql);
  12. $row1 = $resultado->fetch_array(MYSQLI_ASSOC);
  13. if ($estado='pagado'){$text_estado="Pagada";$label_class=' btn-success';}
  14. else{$text_estado="Pendiente";$label_class=' btn-warning';}
  15. ?>
  16.  
  17.  
  18.  
  19. <body>
  20. <div class="container pt-5" >
  21.  
  22. <h3 class="text-center ">Datos</h3><br>
  23. Identificacion: <strong><?php echo $row['identificacion']; ?></strong>
  24. Nombre Completo: <strong><?php echo $row['nombres']." ".$row['apellidos']; ?></strong><hr>
  25.  
  26. <h3 class="text-center ">Pagos-Periodo</h3><br>
  27. Enero-marzo: <strong><span class="btn <?php echo $label_class;?>">
  28. <?php echo $text_estado; ?></span></strong><hr>
  29.  
  30. </div>
  31. </body>
  32. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement