Ver Mensaje Individual
  #1 (permalink)  
Antiguo 30/07/2004, 09:23
rockero666
 
Fecha de Ingreso: julio-2004
Mensajes: 51
Antigüedad: 19 años, 10 meses
Puntos: 0
Pregunta ayuda sobre el sistema d articulos

ayuda sobre el sistema d articulos

Ya tngo todo el sistema d articulos hecho y eso pro no se como s ponen los enlaces d anterior y siguiente pa q se vean d 10 en 10
tngo ste codigo

<?php
include("articulos/conexion.php");
$query = mysql_query("SELECT * FROM articulos WHERE seccion='$cat' ORDER BY id DESC");
echo "<pre><font color=ffffff face=Impact size=4><a href=?page=articulos&cat=php> PHP </a><a href=?page=articulos&cat=htmlycss> HTML Y CSS </a><a href=?page=articulos&cat=flash> FLASH </a><a href=?page=articulos&cat=javascript> JAVASCRIPT </a></pre>";

$sql= "SELECT * FROM articulos WHERE seccion='$cat'";
$res=mysql_query($sql);
$numeroRegistros=mysql_num_rows($res);


echo "<center> $numeroRegistros articulos encontrados</center><br>";

while($row = mysql_fetch_array($query)){

$part=nl2br(htmlspecialchars(substr($row["articulo"],0,100)));



echo "
<table width=\"525\" border=\"0\" cellpadding=\"1\" cellspacing=\"1\" bgcolor=\"#333333\" dwcopytype=\"CopyTableColumn\">
<tr bgcolor=\"#ff0000\" cellspacing=\"1\" cellpadding=\"1\">
<td bgcolor=\"#ff0000\" cellspacing=\"1\" cellpadding=\"1\">
<tr>
<td bgcolor=\"333333\" valign=\"top\"><font size=\"2\" face=\"Arial, Helvetica, sans-serif\"><strong><a href=index.php?page=leer&id=$row[id]>$row[titulo]</a></strong></td>
</tr>
<tr>
<td bgcolor=\"000000\" valign=\"top\"><font size=\"2\" face=\"Arial, Helvetica, sans-serif\">$part<strong>...</strong></td>
</tr>
</td>
</tr>
</table><br> ";

}

mysql_close($link);

?>

</p>

me lo podriais decir please