Ver Mensaje Individual
  #2 (permalink)  
Antiguo 30/01/2009, 00:50
Avatar de pato12
pato12
 
Fecha de Ingreso: septiembre-2007
Ubicación: Salta
Mensajes: 1.620
Antigüedad: 19 años
Puntos: 101
Respuesta: problema con "stripslashes()"

Hola,
Prueba con:
Código PHP:
<head> 

<? 
$dbhost 
= "XXXXXX"; 
$dbuname = "XXXXXXX"; 
$dbpass = "XXXXXXXXXX"; 
$dbname = "XXXXXXXXXX"; 

$link = mysql_connect( $dbhost, $dbuname, $dbpass) or die ( "Error Conectando a La Bases De Datos."); 
mysql_select_db( $dbname,$link ) or die ("Error Seleccionando La Base De Datos."); 

$result = mysql_query("SELECT title,time,hometext FROM nuke_stories ORDER BY nuke_stories.sid DESC LIMIT 0 , 5", $link); // intenta con 0 , 5 enves de 5 

while ($row = mysql_fetch_array($result))
{ 
// deve ir antes que la otra linea

$hometext = stripslashes($row['hometext']); 


?> 
</head> 

<body> 
<table  align="center" width="72%" height="41"> 
<title>Prueba</title><td width="100%" background="http://i286.photobucket.com/albums/ll96/bioxido8/1421351-2.jpg" height="27"> 
  <? echo '<font color="#ffffff" face="Arial" size="4">'.$row[title]. '</font>';?>  </div></td> 
</table> 
</table> 
<td width="100%" bacjgriybd="#c9c9c9"><div align="center"><font color="#000000" face="Arial" size="2"> 
      <? echo  $hometext ; 
        } 
     
?>
Suerte
Salu2
__________________
Half Music - www.halfmusic.com