correcion de muestra
Browse files- app/conection.php +13 -6
app/conection.php
CHANGED
|
@@ -22,9 +22,14 @@ try {
|
|
| 22 |
|
| 23 |
$gbd = null;
|
| 24 |
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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">
|
|
@@ -34,11 +39,13 @@ try {
|
|
| 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) {
|
|
|
|
| 22 |
|
| 23 |
$gbd = null;
|
| 24 |
|
| 25 |
+
?>
|
| 26 |
+
|
| 27 |
+
<div class="container-sm">
|
| 28 |
+
|
| 29 |
+
<?php
|
| 30 |
+
foreach ($data as $usuario) {
|
| 31 |
+
?>
|
| 32 |
+
</div>
|
| 33 |
<div class="card" style="width: 18rem;">
|
| 34 |
<img src="https://www.pinterest.com/pin/6825836927401005/" class="card-img-top" alt="gato">
|
| 35 |
<div class="card-body">
|
|
|
|
| 39 |
class="btn btn-primary">Gatos</a>
|
| 40 |
</div>
|
| 41 |
</div>
|
|
|
|
|
|
|
| 42 |
<?php
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
?>
|
| 46 |
+
</div>
|
| 47 |
|
| 48 |
+
<?php
|
| 49 |
echo json_encode($data);
|
| 50 |
// var_dump($data);
|
| 51 |
} catch (PDOException $e) {
|