<%
set gonggao_rs=server.createobject("adodb.recordset")
sql="select * from gonggao"
gonggao_rs.open sql,conn,1,1
if not gonggao_rs.eof then%>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width=100%>
<tr>
<td width=10% align =right ><strong> 当前公告: </strong> </td>
<td width=80% align =left><a href="disp_gonggao.asp?gonggao_id=<%=gonggao_rs("gonggao_id")%>"> <%=gonggao_rs("gonggao_name")%></a>(<%=gonggao_rs("gonggao_date")%>)<%end if%></td>
<td width=10%><a href="list_gonggao.asp">查看更多公告...</a></td>
</tr>
</table>
<%gonggao_rs.close
set gonggao_rs=nothing %>
算不上高手,偶是新手,这个简单!