chartManD commited on
Commit
78a5b9c
·
1 Parent(s): 87f472d

mostrar datos de la db

Browse files
Files changed (1) hide show
  1. app/conection.php +18 -0
app/conection.php CHANGED
@@ -21,6 +21,24 @@ try {
21
  }
22
 
23
  $gbd = null;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
  echo json_encode($data);
25
  // var_dump($data);
26
  } catch (PDOException $e) {
 
21
  }
22
 
23
  $gbd = null;
24
+
25
+ foreach ($data as $usuario) {
26
+ ?>
27
+ <html>
28
+ <div class="card" style="width: 18rem;">
29
+ <img src="https://www.pinterest.com/pin/6825836927401005/" class="card-img-top" alt="gato">
30
+ <div class="card-body">
31
+ <h5 class="card-title"><?php echo $usuario["nombre"] ?></h5>
32
+ <p class="card-text"><?php echo $usuario["edad"] ?></p>
33
+ <a href="https://www.google.com/search?q=gatos&sca_esv=4b803b01132785fa&sca_upv=1&udm=2&sxsrf=ADLYWILfFlNBCGb4nHWc9_eE6eZDorVYzw%3A1726940588525&ei=rAXvZtzkH5nSkPIPraKokAY"
34
+ class="btn btn-primary">Gatos</a>
35
+ </div>
36
+ </div>
37
+
38
+ </html>
39
+ <?php
40
+ }
41
+
42
  echo json_encode($data);
43
  // var_dump($data);
44
  } catch (PDOException $e) {