HOLA ME SALE ESTE ERROR EN MI CODIGO NOc que cosa estoy haciendo mal e estado corrigiendo pero sigue igual
ESTA SERIA LA LINEA 179 while ($fila0 = mysql_fetch_array($resultado)) {
-----------------------------------------------------------------------------------------------------
PARTE 1
Código PHP:
<?php include "includes/config.php" ?>
<?php
function productos($tipo) {
?>
<?php
conecionBD();
$sql = "SELECT dp.idproducto as idproducto,pr.nombreproducto, pr.precio,pr.idcolor ,pr.idtalla, pr.idtipo , count(*) as contador FROM pedido p inner join detallepedido dp on p.idpedido = dp.idpedido inner join producto pr on pr.idproducto = dp.idproducto where idtipo={$tipo} and stock > 0 group by pr.nombreproducto ,pr.idcolor order by count(*) desc limit 4;";
$respues = mysql_query($sql);
$tipoNombre = "";
$sql2 = "select * from tipoproducto where idtipo = {$tipo} limit 1";
$respuesta2 = mysql_query($sql2);
while ($filat = mysql_fetch_array($respuesta2)) {
global $tipoNombre;
$tipoNombre = $filat['nombreTipo'];
}
$d = 0;
while ($d < 2) {
?>
<!-- ROW -->
<div class="row">
<?php
$c = 0;
while ($fila = mysql_fetch_array($respues)) {
?>
<?php
$peticion2 = "SELECT * from fotoproducto where IdProducto = {$fila['idproducto']} limit 2";
$resultado2 = mysql_query($peticion2);
$contador = 0;
while ($fila2 = mysql_fetch_array($resultado2)) {
if ($contador % 2 == 0) {
echo "
<img class='img' src='foto/producto/{$tipoNombre}/{$fila2['imagen']}.jpg' alt='' />";
} else {
echo "
<img class='img_h' src='foto/producto/{$tipoNombre}/{$fila2['imagen']}.jpg' alt='' />";
}
$contador++;
}