chartManD commited on
Commit
67e11f5
·
1 Parent(s): 938d709

mostra imagen en compras.php

Browse files
Files changed (1) hide show
  1. app/pages/compras.php +10 -4
app/pages/compras.php CHANGED
@@ -1,15 +1,21 @@
1
  <?php include_once "../inc/header.php"; ?>
2
 
3
  <?php
 
 
 
 
 
 
4
  var_dump($_GET);
5
  ?>
6
 
7
- <article class="container-fluid d-flex flex-column">
8
- <header>
9
  <h2><?php echo $_GET["articulo"] ?></h2>
10
  </header>
11
- <div class="">
12
- <img src="" alt="">
13
  </div>
14
  </article>
15
 
 
1
  <?php include_once "../inc/header.php"; ?>
2
 
3
  <?php
4
+ $imagenes = [
5
+ "zapato" => "https://m.media-amazon.com/images/I/61G2pdzvrcL._AC_.jpg",
6
+ "camisa" => "https://yazbek.com.mx/cdn/shop/products/C0604-camisa-oxford-liso-mc-caballero-75algodon-25poliester-azul-cielo_1.jpg?v=1693281090",
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">
14
+ <header class="container-fluid">
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