Ver Mensaje Individual
  #12 (permalink)  
Antiguo 02/03/2005, 06:42
Avatar de FuLaNo_
FuLaNo_
 
Fecha de Ingreso: mayo-2003
Ubicación: Don Torcuato, Buenos Aires, Argentina
Mensajes: 1.250
Antigüedad: 21 años
Puntos: 2
Ahora si pude hacerlo.

http://www.solo-racing.com.ar/PHP/se.../probando.html

No se porque me daba error antes porque lo estaba haciendo igual, seguramente se me escapo alguna comilla
Código PHP:
<?
CONEXION DB

$php_variable 
'<style type=text/css> a { text-decoration: none; } a:hover { text-decoration: underline; color: #3E6D95; }</style>';
$sql mysql_query("SELECT * FROM noticias ORDER BY id DESC LIMIT 0,15"); 
while(
$row=mysql_fetch_array($sql)){
if (
$row[aceptar] == "1") {
$php_variable .= '<span style="font-size: 10px; color:#000000">'.str_replace("/",".",$row[fecha]).' - </span><a target=_blank href=http://www.solo-racing.com.ar/PHP/news/archivos/'.$row[id].'.php><b><span style="font-size: 10px; color:#000000">'.$row[titulo].'</span></b></a><br>';
}
}
$php_variable .= '<span style="font-size: 10px">Cortesía de <a target="_blank" href="http://www.solo-racing.com.ar/"><b><font color="#000000">R</font></b><font color="#000000">acing <b>E</b>l <b>Q</b>uinto<b>E</b>lemento</font></a>. </span>';
echo 
"document.write('".$php_variable."')";
?>
__________________
I Love Programming...