从数据库掉不出数据..
<html>
<head>
<title>图书显示</title>
</head>
<body>
<p> </p>
<p align="center"><font size="7" color="#ff0000" face="华文行楷"><b>图书显示</b></font></p>
<p><font color="#ff00ff" size="5" face="楷体_gb2312"><b> 目前库存图书:</b></font></p>
<?php
$con=mysql_connect("localhost","root","1234");
mysql_select_db("tushu");
$query="select * from library";
$result=mysql_query("$query",$con);
$rownumber=mysql_num_rows($result);
echo"<cneter>";
echo"<table border='1'><td>";
echo"<tr>";
echo"<td align=center> id </td>"
" <td align=center> name </td>"
"<td align=center> author </td>"
"<td align=center> classname </td>"
"<td align=center> edtidate </td>"
"</tr>";
while ($r=mysql_fetch_array($result))
{
$name=$r["name"];
$author=$["author"];
$id=$r["id"];
$classname=$r["classname"];
$editdate=$r["editdate"];
echo"<tr>";
echo"<td align='left'><font size='2'>$name</font></td>";
echo"<td align='left'><font size='2'>$author</font></td>";
echo"<td align='left'><font size='2'>$id</font></td>";
echo"<td align='left'><font size='2'>$classname</font></td>";
echo"<td align='left'><font size='2'>$editdate</font></td>";
echo"</th>";
}
echo"</table>";
echo"</table>";
?>
<p>
<font face="楷体_gb2312" size="5" color="#ff00ff"><b>
<a href="index.php">返回</a></b></font></p>
</body>
</html>
显示不出数据库的数据???