<html>
<head>
<title>查看文件</title>
</head>
<body><?php
  $con=mysql_connect("localhost","root","");   if(!$con){
      echo "链接数据库失败";
      exit();
   }
   //选择数据库
   
   $s=mysql_select_db("wenku",$con);
   
   if(!$s){
       echo "选择数据库失败";
      exit();
   }
   mysql_query("set character set 'utf8'");//读库
mysql_query("set names 'utf8'");//写库
   $sql="select * from fileinfo ";
    $a="sd";
//执行sql语句
$result=mysql_query($sql); //返回结果集
while($row = mysql_fetch_array($result))
  {
?>
<a name="a" href="wjxx.php?id=  这里的值要是a标签的内容  ">d<?php echo $row['filrName']?> </a><br>
<?php
  }
?>
</body>
</html>