-<?php
-$res = mysql_query("select id,path from file where type='page'");
-while (list($id,$path)=mysql_fetch_row($res)) {
-?>
-<tr>
- <td><?php echo $id; ?></td>
- <td><a href="file.php?id=<?php echo $id; ?>"><?php echo $path; ?></a></td>
-</tr>
-<?php
-}
-?>
-</table>