求助,首页频道调用问题
<%dim sqlsort,RsSort,hangpicnum
sqlsort="select top 4 * from a125_type where a125_big_id=0 and a125_setting < 4 and Indexshow=True order by a125_order asc"
Set RsSort=conn.execute (sqlsort)
RsSort.Open sql,Conn,1,1
Response.Write"<table border='0' cellspacing='0' width='100%' align='center'><tbody>"
if RsSort.eof and RsSort.bof then
response.write "<div align=center>还没有任何栏目</div>"
else
response.write"<tr>"
do while not rs.eof
for hangpicnum=1 to 2
if RsSort.eof then exit for
Response.Write"<td>"
%>
上面这段代码是按顺序调用4个文章栏目,就是1,2,3,4。我现在想调用指定的文章栏目,比如1,3,4,5。这段该怎么改 在后台的栏目设置中改,选中(或不选)在首页显示即可。
页:
[1]