编程论坛
注册
登录
编程论坛
→
ASP技术论坛
刚入门,高手进来指点下
无痛肿瘤
发布于 2011-06-17 17:18, 474 次点击
想找个简单点的,语言少点的asp网页作为参考
但是从网上下载的网站大多繁而复杂,所以希望某某高手可义给个资源
3 回复
#2
zfjyyzycl
2011-06-17 17:31
<%
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 %>
算不上高手,偶是新手,这个简单!
#3
无痛肿瘤
2011-06-17 23:13
回复 2楼 zfjyyzycl
大哥莫要谦虚,看你注册的时间也不短了,想必是个高手
大哥发给我的代码为嘛我打不开呢,其实我看不懂,我只学了课本第一章,难道是大哥有什么图片之类的附件在里面?加q聊吧,大哥qq:445692798
#4
dzt0001
2011-06-18 08:35
先把置顶帖里的新手必读看懂
1