Ver Mensaje Individual
  #2 (permalink)  
Antiguo 09/11/2008, 03:58
comun
 
Fecha de Ingreso: enero-2002
Mensajes: 132
Antigüedad: 22 años, 4 meses
Puntos: 1
Respuesta: Problemas con mi catalogo

Prueba a sustituir esto
$row=mysql_fetch_array($resultados);
por esto otro...

if($row=mysql_fetch_array($resultados))
{

todo el bloque html y cierras al final el if


}


Quedaría así...

Código PHP:
if($row=mysql_fetch_array($resultados))
{
echo 
'<td>';
echo 
'<p align="center"><img src="'.$row["foto1"].'"></p>';
echo 
'<br>';
echo 
'<p align="center">'.$row["titulo"].'</p>';
echo 
'</td>';
}

Este otro bloque
Código PHP:
if($contador>5)
{
echo 
'<tr>';
$contador=0;

__________________
Un saludo, esperando ser de ayuda...
COMUN :stress:

Diseño y Programación
Tierra de Califas
http://www.tecnocodigo.com/dipro/