Ver Mensaje Individual
  #7 (permalink)  
Antiguo 12/01/2007, 13:15
Avatar de ..::MaRcOs::..
..::MaRcOs::..
 
Fecha de Ingreso: diciembre-2006
Mensajes: 328
Antigüedad: 17 años, 4 meses
Puntos: 3
Re: Parrafos de textos en sql...

la estoy trabajando asi...
¨
<?php
include ('config.php');
if(empty($_GET['id_noticia']))
$id_noticia= "ORDER BY fecha DESC limit 1";
else
$id_noticia= 'where id_noticia= '.$_GET['id_noticia'].' limit 1';
$query = ("SELECT * FROM noticias_generales $id_noticia");
$result = mysql_query( $query );
if( !is_resource( $result ) ) {
die("Problema con el Query:".mysql_error());
}
while( $datos = mysql_fetch_array( $result ) ) {
echo '<div id="Layer9" style="position:absolute; width:539px; height:115px; z-index:39; left: 5px; top: 25px;">
<table width="100%" border="0" >
<tr>
<td class="titulos"><p align="justify"><strong>'.$datos[titulo].'</strong></td>
</tr><tr><td class="Estilo1">'.$datos[fecha].'</td></tr>
<tr><td class="Estilo1">&nbsp;</td></tr>
<tr>
<td class="Estilo1" ><p align="justify">'.$datos[contenido].'<br>&nbsp;<br></td>
</tr>
<tr>
<td class="menuarriba">Por: '.$datos[autor].'</td>
</tr>
</table></p><table width="541" border="0">
<tr>
<td>&nbsp;</td>
</tr>
</table>
</div>';} ?>



cuando la puse como me dijiste me salio error, se q la estoy colocando mal por q hice la prueba en otra pag y si funciona, el caso es estoy metiendo capas y tablas para mostrar el contenido como yo quiero pero como hiria hay es lo q no se.....