Ver Mensaje Individual
  #12 (permalink)  
Antiguo 23/03/2010, 14:19
ma_miranda19
 
Fecha de Ingreso: enero-2010
Ubicación: badajoz
Mensajes: 47
Antigüedad: 14 años, 3 meses
Puntos: 0
Respuesta: Mostrar valores en columnas

Gracias por contestar tan rapido, este es el codigo:


$sql="select * from coches where inicio = 'si' and publicado = 'si' order by id limit 15";
$reg_ofertas=mysql_query($sql);


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";
for($i=0;$i<3;$i++){

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 !";