国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

PHP develops simple book background management system book statistics complete code

Introduce the database file config.php file

and the ly_check.php file that determines whether the administrator is logged in

Call the css.css style in the HTML page

Place the book The statistics page is named count.php file.

<?php
include("config.php");
require_once('ly_check.php');
?>
<html>
<head>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
   <title>圖書(shū)統(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">&nbsp;后臺(tái)管理&nbsp;>>&nbsp;圖書(shū)統(tǒng)計(jì)</td>
   </tr>
   <tr>
      <td align="center" bgcolor="#FFFFFF" height="27">圖書(shū)類別</td>
      <td align="center" bgcolor="#FFFFFF">庫(kù)內(nèi)圖書(shū)</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]."&nbsp;種</td>";
      echo "</tr>";
   }
   ?>
</table>
</body>
</html>

In this way, our complete simple book backend management system is basically completed. We hope that completing this system

will be of some help to everyone's PHP learning.

Note: The code in this tutorial is only for friends to learn and refer to, and cannot be used for projects!

Continuing Learning
||
<?php include("config.php"); require_once('ly_check.php'); ?> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>圖書(shū)統(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)管理 >> 圖書(shū)統(tǒng)計(jì)</td> </tr> <tr> <td align="center" bgcolor="#FFFFFF" height="27">圖書(shū)類別</td> <td align="center" bgcolor="#FFFFFF">庫(kù)內(nèi)圖書(shū)</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>
submitReset Code