Estoy haciendo un carrito de compras pero tengo un problema, ¿Podrían ayudarme?
Publicado por bruno (10 intervenciones) el 14/05/2020 02:42:41
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" type="text/css" href="">
<script type="text/javascript" href="./js/scripts.js"></script>
</head>
<body>
<header>
<h1>DETALLESS</h1>
<a href="carritodecompras.php" title="VER CARRITO DE COMPRAS"><img src="imagenes/carrito.png">
</a>
</header>
<section>
<?php
include 'conexion.php';
$re=mysqli_query($con,"SELECT * FROM tenis WHERE id_tenis='.$_GET['id_tenis']")or die("error en la consulta");
while ($f=mysqli_fetch_array($re)) {
?>
<center>
<img src="productosimg/<?php echo $f['imagen']; ?>"><br>
<span><<?php echo $f['modelo']; ?></span><br>
<span>PRECIO: <<?php echo $f['precio']; ?></span><br>
<a href="detalles.php?id_tenis=<?php echo $f['tenis_id'];?>">Ver</a>
</center>
<?php
}
?>
</section>
</body>
</html>
Este es el codigo, la verdad no tengo mucha experiencia con php, por lo que no me queda claro en que estoy mal.¿Podrían ayudarme?

Este es el error que me sale al ejecutar.
Valora esta pregunta


0