Código PHP:
Ver original
$conexion = mysqli_connect("localhost","root","","orgunidades"); mysqli_set_charset($conexion,"utf8"); $peticion="SELECT * FROM productos WHERE enlace-categoria='unidades-dentales'"; $resultado=mysqli_query($conexion,$peticion); while($fila=mysqli_fetch_array($resultado)){ ?> <?php echo'<div class="col-xs-12 col-md-5 col-md-offset-1 productos">'; echo' <h3 style="margin:3px; font-size:12px">'.$fila['nombre'].'</h3>'; $peticion2="SELECT * FROM imagenes WHERE idProducto=".$fila['id']." LIMIT 1"; echo'<a href="producto.php?id='.$fila['id'].'#centroDerecha"><img src="tienda/fotos/'.$fila2['imagen'].'.jpg" width=100% height=250px/></a>'; } echo'<br>'; //echo'<a href="ventade.php?equipos='.$fila['enlace'].'#centroDerecha"><button style="margin:5px">Más información</button></a>'; echo'</div>'; } ?>
me sale el siguiente error:
Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given in C:\xampp\htdocs\UNIDADESDENTALES.ORG\indexPrueba.p hp on line 143
en mi base tengo en tabla productos en el campo enlace-categoria 3 filas de 'unidades-dentales'
alguna ayuda porfavor!!