Ver Mensaje Individual
  #1 (permalink)  
Antiguo 01/11/2010, 10:02
gordot
 
Fecha de Ingreso: febrero-2010
Ubicación: cba
Mensajes: 203
Antigüedad: 15 años, 1 mes
Puntos: 16
formato de texto con consulta SELECT

amigos como andan? tengo un problema que es el siguiente? en un campo de una tabla cargo un articulo mediante un textarea, la idea es que se carge con espacios, tabulados, etc. Despues hago un select para poder ampliar ese articulo con un ligtbox pero me muestra todo el texto junto sin respetar el formato que yo cargue anteriormente, como podria solucionar esto:

Código PHP:

<?
include ("conectar.inc");

$v=($_GET['id']);

$SQL2="select * from eventos where id=$v";

$res=mysql_query($SQL2);

$fila=mysql_fetch_array($res);


?>

<table border="0" align="center">
<tr>
<td align='center'>
<h3>
<?echo $fila[titulo]; ?>
</h3>
</td>
</tr>
<tr>
<td align='center'>

 <img src="<?echo $fila[imagen]; ?>" width="350" height="200"/>


</td>
</tr>
<tr>
<td align='center'>
<p>
<?echo $fila[subtitulo]; ?>

</p>

</td>
</tr>
</table>

el problema sera del lightbox:

gracias