Correcion de la imgen
Browse files- app/pages/compras.php +1 -2
app/pages/compras.php
CHANGED
|
@@ -7,7 +7,6 @@ $imagenes = [
|
|
| 7 |
"calcetin" => "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcThSuHrWfyHN2SrCjhRkamdE8w4ymaWtRKavQ&s",
|
| 8 |
"lentes" => "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTnNxKaxTz_A0kwyqlEsN8zp9OZ7fkqdPAmNg&s"
|
| 9 |
];
|
| 10 |
-
var_dump($_GET);
|
| 11 |
?>
|
| 12 |
|
| 13 |
<article class="container-fluid d-flex flex-column justify-content-center">
|
|
@@ -15,7 +14,7 @@ var_dump($_GET);
|
|
| 15 |
<h2><?php echo $_GET["articulo"] ?></h2>
|
| 16 |
</header>
|
| 17 |
<div class="container-fluid">
|
| 18 |
-
<img class="img-fluid" src="<?php echo $_GET["articulo"]; ?>" alt="<?php echo $_GET["articulo"]; ?>">
|
| 19 |
</div>
|
| 20 |
</article>
|
| 21 |
|
|
|
|
| 7 |
"calcetin" => "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcThSuHrWfyHN2SrCjhRkamdE8w4ymaWtRKavQ&s",
|
| 8 |
"lentes" => "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTnNxKaxTz_A0kwyqlEsN8zp9OZ7fkqdPAmNg&s"
|
| 9 |
];
|
|
|
|
| 10 |
?>
|
| 11 |
|
| 12 |
<article class="container-fluid d-flex flex-column justify-content-center">
|
|
|
|
| 14 |
<h2><?php echo $_GET["articulo"] ?></h2>
|
| 15 |
</header>
|
| 16 |
<div class="container-fluid">
|
| 17 |
+
<img class="img-fluid" src="<?php echo $imagenes[$_GET["articulo"]]; ?>" alt="<?php echo $_GET["articulo"]; ?>">
|
| 18 |
</div>
|
| 19 |
</article>
|
| 20 |
|