Ver Mensaje Individual
  #3 (permalink)  
Antiguo 20/07/2004, 08:26
hammmer
 
Fecha de Ingreso: mayo-2004
Mensajes: 75
Antigüedad: 20 años
Puntos: 0
Hola Cluster estoy usando un codigo muy simple ke vi de un tutorial en una web, aki esta el codigo q muestra las noticias:

<?
include('config.inc.php');

$mostrar = 6;
$inicial = $pg * $mostrar;
$sql = "SELECT * FROM noticias ORDER BY id desc LIMIT $inicial,$mostrar";
$result = mysql_query($sql);
while($row=mysql_fetch_array($result))
{

echo "<br>
<table width=100% height=59 border=0 cellpadding=0 cellspacing=1 bgcolor=#000000>
<tr>
<td bgcolor=#CCCCCC><table width=100% border=0 cellpadding=0 cellspacing=0>
<tr>
<td background=file:///C|/FoxServ/www/pchard/imagenes/borde.jpg><center><span class=Estilo7>$row[titulo]</span></center></td>
</tr>
</table>
<table width=100% border=0 cellpadding=0 cellspacing=0>
<tr>
<td bgcolor=#DFDFDF>$row[noticia]</td>
</tr>
</table>
<table width=100% border=0
cellpadding=0 cellspacing=0 background=file:///C|/FoxServ/www/pchard/imagenes/borde.jpg>
<tr>
<td width=84%><center>Escrita por $row[usuario] el&nbsp;$row[fecha]</center></td>
<td width=16%><u><a href=?seccion=noticia>Leer m&aacute;s</a></u></td>
</tr>
</table></td>
</tr>
</table>";
}
?>
Salu2