本文介绍了无法显示输出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
任何人都可以帮助我检查我的编码
我的本地主机显示此奇怪的输出
http://img69.imageshack.us/img69/8749/capwwture.jpg [ ^ ]
any one can help me check my coding
my localhost show this weird output
http://img69.imageshack.us/img69/8749/capwwture.jpg[^]
<?php
$link=mysql_connect('localhost','root','12345') or die (mysql_error());
mysql_select_db("library") or die (mysql_error());
$query = "SELECT * FROM book order by slno";
$result = mysql_query($query,$link)
or die(mysql_error());
?>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=unicode UTF-8" />
<title>AIMST Online Library System</title>
<link href="/library/css/default.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="wrapper">
<?php include_once $_SERVER['DOCUMENT_ROOT'] .'/library/includes/header.php'; ?>
<div id="page">
<div id="content">
<div id="welcome">
<h2 class="head2" ><a class="head">View / Edit Book Master Data</a></h2>
<table class="aatable">
<tr>
<th >SL No</th>
<th>Title</th>
<th>Media Type</th>
<th >Author</th>
<th >Publication</th>
<th >Edition</th>
<th >Year</th>
<th >No of Copy Avail</th>
<th >Location......</th>
<th >Category</th>
<th >Sub Category</th>
<th >Remark</th>
<th></th></tr>
<?php
while ($row = mysql_fetch_array($result)) {
$book_id = $row['book_id'];
$slno = $row['slno'];
$title = $row['title'];
$media_type = $row['media_type'];
$author=$row['author'];
$publication=$row['publication'];
$edition=$row['edition'];
$year=$row['year'];
$total_holding=$row['total_holding'];
$location=$row['location'];
$category=$row['category'];
$sub_category=$row['sub_category'];
$book_remark=$row['book_remark'];
echo "<tr>";
echo "<td>".$slno."</td>";
echo "<td >".$title."</td>";
echo "<td>".$media_type."</td>";
echo "<td>".$author."</td>";
echo "<td>".$publication."</td>";
echo "<td >".$edition."</td>";
echo "<td>".$year."</td>";
echo "<td >".$total_holding."</td>";
echo "<td>".$location."</td>";
echo "<td>".$category."</td>";
echo "<td>".$sub_category."</td>";
echo "<td>".$book_remark."</td>";
?>
<td><a href="book_update.php?action=edit&id=<?php echo $row['book_id']; ?>">[EDIT]</a> </td>
<?php
echo "</tr>";
}
?>
</table>
<!--body ends-->
</div>
<!-- end div#welcome -->
</div>
<!-- end div#content -->
<!-- end div#sidebar -->
<div style="clear: both; height: 1px"></div>
</div>
<?php include_once $_SERVER['DOCUMENT_ROOT'] . '/library/includes/footer.php'; ?>
</div>
<!-- end div#wrapper -->
</body>
</html>
推荐答案
这篇关于无法显示输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!