Depura hasta que salga:
Código PHP:
<?php
$sql ="SELECT * FROM archivos;";
$consulta = mysql_query($sql) or die (mysql_error());
if(!mysql_num_rows($consulta))die("No hay resultados");
echo "<h4>La consulta devuelve {mysql_num_rows($consulta)}</h4>";
$x = 0;
while ($row = mysql_fetch_assoc($consulta)){
echo "<h4>Resgistro número $x, id vale {$row['id']}</h4><pre>";
print_r($row); //Esta linea imprime un campo id pero luego no te sale en el link???
echo "</pre>";
$x ++;
/*
echo "Id: <input type=\"text\" value=\"".$row['id']."\"/><br/>";
echo "Nombre: <input type=\"text\" value=\"".$row['nombre']."\"/><br/>";
echo "Sección: <input type=\"text\" value=\"".$row['seccion']."\"/><br/>";
echo "Fecha: <input type=\"text\" value=\"".$row['fecha']."\"/><br/>";
echo " Descarga el archivo <a href=\"./archivos-subidos/".$row["imagen"]."\">".$row["nombre"]."</a>";
*/
}
?>
ejecuta esto en un archivo separado con conexión a la db, tiene que salir! Dale caña.