Ver Mensaje Individual
  #8 (permalink)  
Antiguo 16/11/2005, 11:52
Avatar de arielcasanova
arielcasanova
 
Fecha de Ingreso: octubre-2004
Ubicación: Bahía Blanca - Argentina
Mensajes: 332
Antigüedad: 19 años, 6 meses
Puntos: 1
Clus:
He hecho esto:
Código:
<?
echo"document.write('<table width='150' border='0' align='center' cellpadding='0' cellspacing='3' class='tabla01'>
              <tr>
                <td width='171' bgcolor='009EE2' class='Estilo9'><div align='center' class='Estilo11'>&Uacute;ltimos veh&iacute;culos ingresados </div></td>
              </tr>
              <tr>
                <td bgcolor='#FEFEF3'>')";
				include ("conexion.php");
$link = mysql_connect($host, $user, $pass); 
mysql_select_db($base, $link); 
$sql2 = "SELECT * FROM vehiculos where estado = 'activo' and 1 ORDER BY fecha DESC LIMIT 5"; 
$result2 = mysql_query($sql2, $link); 
if ($row = mysql_fetch_array($result2)){ 
mysql_field_seek($result2,0); 
do { 
echo
"document.write('<table width='130' border='0' cellpadding='0' cellspacing='0'>
  <tr>
    <td width='130' align='left' valign='top'><div class='negrita'>".$row['marca']."</div><a href='detalle.php?id=".$row['id']."'> ".$row['modelo']." ".$row['combustible']." ".$row['anio']."</a></div></td>
  </tr>
</table>')
";
}
while ($row = mysql_fetch_array($result2)); 
} else { 
echo ""; 
}echo"document.write('</td>
              </tr>
            </table>')"; 


?>
y lo guardé como feed.php

y en otra página puse esto:
Código:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Documento sin t&iacute;tulo</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body><script src="http://www.autosdelabahia.com.ar/feed.php"></script>

</body>
</html>
que subí a otra dirección... el tema es que no pasa nada. Seguramente no he entendido bien lo que me decís... si podés echarme un poco de luz sobre el asunto, muy agradecido.
__________________
Ariel Casanova
diseño y desarrollo web estratégico
www.emporia.com.ar