日期:2014-05-16 浏览次数:20785 次
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!-- #include file="conn.asp" -->
<%
dim exec,cccc,wz
exec="select *from author"
set rs=server.CreateObject("adodb.recordset")
cccc="select *from type"
set cc=server.CreateObject("adodb.recordset")
wz="select *from article"
set wzwz=server.CreateObject("adodb.recordset")
rs.open exec,conn,1,1
cc.open cccc,conn,1,1
wzwz.open wz,conn,1,1
%>
<% do while not wzwz.eof %>
<p><%=wzwz("id")%>:标题:<%=wzwz("title")%>
<%
if wzwz("typeid")=cc("typeid") then
dddd="类别:"&cc("type")
else
dddd=""
%>
response.Write("dddd")
<%end if%>
</p>
<%
wzwz.movenext
loop
%>
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!-- #include file="conn.asp" -->
<%
dim exec,cccc,wz
exec="select *from author"
set rs=server.CreateObject("adodb.recordset")
cccc="select *from type"
set cc=server.CreateObject("adodb.recordset")
wz="select *from article"
set wzwz=server.CreateObject("adodb.recordset")
rs.open exec,conn,1,1
cc.open cccc,conn,1,1
wzwz.open wz,conn,1,1
do while not wzwz.eof
%>
<p><%=wzwz("id")%>:标题:<%=wzwz("title")%>
<%
if wzwz("typeid") = cc("typeid") then
dddd="类别:"& cc("type")
else
dddd=""
end if
response.Write dddd
%>
</p>
<%
wzwz.movenext
loop
%>