index
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<%
set rs=server.createobject("adodb.recordset")
sql="select user,qq,email,content,data from main order by id desc"
rs.open sql,conn,1,1
%>
<!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>无标题文档</title>
</head>
<body>
<table width="628" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2"><%=rs("user")%> 留言于<%=rs("data")%></td>
<td width="102"> </td>
<td width="65">QQ 邮件</td>
</tr>
<tr>
<td width="53">内容:</td>
<td width="408" colspan="3" rowspan="2"><%=rs("content")%></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td colspan="2"> </td>
<td>填写留言</td>
<td>管理留言</td>
</tr>
</table>
</body>
</html>
conn
<%
set conn=server.createobject("adodb.connection")
connstr="Provider=Microsoft.jet.oledb.4.0;data source="&server.mappath("data.mdb")
conn.open connstr
%>
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<%
set rs=server.createobject("adodb.recordset")
sql="select user,qq,email,content,data from main order by id desc"
rs.open sql,conn,1,1
%>
<!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>无标题文档</title>
</head>
<body>
<table width="628" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2"><%=rs("user")%> 留言于<%=rs("data")%></td>
<td width="102"> </td>
<td width="65">QQ 邮件</td>
</tr>
<tr>
<td width="53">内容:</td>
<td width="408" colspan="3" rowspan="2"><%=rs("content")%></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td colspan="2"> </td>
<td>填写留言</td>
<td>管理留言</td>
</tr>
</table>
</body>
</html>
conn
<%
set conn=server.createobject("adodb.connection")
connstr="Provider=Microsoft.jet.oledb.4.0;data source="&server.mappath("data.mdb")
conn.open connstr
%>