Ver Mensaje Individual
  #13 (permalink)  
Antiguo 23/03/2010, 14:24
Avatar de Anastasiaphp
Anastasiaphp
 
Fecha de Ingreso: junio-2006
Ubicación: El patio de mi casa
Mensajes: 196
Antigüedad: 17 años, 10 meses
Puntos: 3
Respuesta: Mostrar valores en columnas

Parece que te sobre el bucle del for, prueba así:

Código PHP:
if (mysql_num_rows($reg_ofertas)){
echo 
"<table width='680' border='1'>";
echo 
"<tr><td colspan='3'>Ofertas Destacadas </td></tr>";
    while (
$row = @mysql_fetch_array($reg_ofertas)) {
    echo 
"<tr> \n";
    echo 
"<td height='100' align='center'><img src='img_subidas_mini/$row[foto1]' width=90><br>Precio: ".$row['precio']."</td>";
    echo 
"</tr> \n";
    }
echo 
"</table> \n";
}
else
echo 
"¡ No se ha encontrado ningún registro !"