<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!--#include file="conn.asp"-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>图文信息tow</title>
<style type="text/css">
* {
margin:0px;
padding:0px;
font-family:"楷体_GB2312";
}
#box {
width:600px;
height:275px;
margin:0px auto;
}
#title {
background:url(image/bookinfo.png) no-repeat;
text-align:right;
margin-right:10px;
height:24px;
}
table {
margin-top:10px;
}
table td {
color:#0099ff;
border-bottom:1px solid #999999;
}
.ts {
color:#cc6600;
}
</style>
<%
id=cint(request.querystring("id"))
sql="select * from books where id="&id
rs.open sql,conn,1,2
%>
</head>
<body>
<div id="box">
<ul id="title">
<<返回
</ul>
<ul>
<%if not rs.eof then
rs("hits")=int(rs("hits"))+1
rs.update
%>
<li>
<table cellpadding="0" cellspacing="0" width="600">
<!--DWLayoutTable-->
<tr>
<td width="135" rowspan="6" align="center" valign="bottom"><img src="<%=rs("smallpic")%>" width="135" height="155" border="0"></td>
<td width="88" height="26" valign="middle" class="ts">图书名称:</td>
<td colspan="3"><%=rs("bookname")%></td>
</tr>
<tr>
<td height="26" valign="middle" class="ts">出版社:</td>
<td colspan="3"><%=rs("publish")%></td>
</tr>
<tr>
<td height="26" valign="middle" class="ts">作者:</td>
<td colspan="3"><%=rs("author")%></td>
</tr>
<tr>
<td height="26" valign="middle" class="ts">市场价:</td>
<td width="172"><%=rs("price")%>元</td>
<td width="75" valign="middle" class="ts">会员价:</td>
<td width="128"><%=rs("memprice")%>元</td>
</tr>
<tr>
<td height="26" valign="middle" class="ts">开本:</td>
<td colspan="3" valign="middle"><%=rs("kai")%>开 页数:<%=rs("pages")%>页
<%if rs("disk")=true then%>
附光盘
<%end if%></td>
</tr>
<tr>
<td height="26" valign="middle" class="ts">点击次数:</td>
<td align="center" valign="middle"><%=rs("hits")%>次</td>
<td colspan="2" align="center" valign="middle">在线订购<img src="image/car.gif" /></td>
</tr>
<tr>
<td height="46" colspan="5" valign="bottom" style="color:#000000; height:45px;">内容简介:<br/>
<%=rs("content")%></td>
</tr>
</table>
</li>
<%else%>
<script language="javascript">
alert("对不起,没有您要查找的图书信息!");
window.history.go(-1);
</script>
<%end if%>
</ul>
</div>
</body>
</html>
|
|
|
||||||
|
|
|
原因是:conn.asp的charset="gb2312",而其它网页的charset="utf-8",所以产生了乱码 解决方法:把其它网页的charset改成gb2312就可以了 |
||
|
|
|
|
页面存为utf8了吗? 还有就是我看到里面
可能是问题所在。 更新 结合你之前发的错误页面,应该是数据库那边编码问题,MySQL中用 |
|||
|
|
