PHP? ??? ? ?? ?? ??? ? ?? ??? ??? ?????.
?????? ?? config.php ??
? ly_check.php ??? ???? ???? ?????? ?????
HTML ????? css.css ???? ?????
?? ?? ??? count.php ?? ??? ?????.
<?php include("config.php"); require_once('ly_check.php'); ?> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>圖書統(tǒng)計(jì)</title> <link rel="stylesheet" href="css.css" type="text/css"> </head> <body> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC" class="table"> <tr> <td height="27" colspan="2" align="left" bgcolor="#FFFFFF" class="bg_tr"> 后臺(tái)管理 >> 圖書統(tǒng)計(jì)</td> </tr> <tr> <td align="center" bgcolor="#FFFFFF" height="27">圖書類別</td> <td align="center" bgcolor="#FFFFFF">庫內(nèi)圖書</td> </tr> <?php $sql="select type, count(*) from yx_books group by type"; $val=mysqli_query($link,$sql); while($arr=mysqli_fetch_row($val)){ echo "<tr height='30'>"; echo "<td align='center' bgcolor='#FFFFFF'>".$arr[0]."</td>"; echo "<td align='center' bgcolor='#FFFFFF'>本類目共有:".$arr[1]." 種</td>"; echo "</tr>"; } ?> </table> </body> </html>
??? ?? ??? ???? ??? ? ??? ?? ???? ????? ???????. ? ???
? ???? ?? ?? ??? PHP ??? ??? ??? ????.
??: ? ???? ??? ???? ??? ??? ? ?? ???? ???? ?????? ??? ? ????!