ASP数据库问题
在我的网站上我想在加个板块,这个版块是ASP写的下面是这个类的代码:function news4(art,h,txt,tiao)
dim a
a=0
sql="select id,articletitle,articleurl from wenzhang where articletype2='"&art&"' and ifvalid='"&"是"&"' and iftu<>true order by ifontop desc,tianjiashijian desc"
rs2.open sql,conn2,1,1
do while not rs2.eof and a<tiao
response.Write "<tr>" & vbCrLf
response.write "<td height='"&h&"'>" & vbCrLf
response.write " <img src='images/arrow_list.gif' width='13' height='11' />" & vbCrLf
if art="26" or art="30" or art="5" or art="50" or art="27" or art="29" then
response.write "<a style='color:#2a2ab7' href='dyfc/index.asp?id="&rs2("id")&"' target='_blank'>"&mid(rs2("articletitle"),1,txt)&"</a>" & vbCrLf
else
response.write "<a style='color:#2a2ab7' href='ziliaoku/index.asp?id="&rs2("id")&"' title='"&rs2("articletitle")&"' target='_blank'>"&mid(rs2("articletitle"),1,txt)&"</a>" & vbCrLf
end if
response.write "</td></tr>"
rs2.movenext
a=a+1
loop
rs2.close
end function
我ASP学的不是很好,不知道数据库这怎么设置,怎样在数据库那开辟个新的空间,大家能帮我看看怎么样写这个新块么,内容一样,只要互相不冲突就行。