http://www.jkw.sh.cn/Product.asp?BigClassName=影视剧院&Smallclassname=故梦】第一集是第一个,我现在需要把它放到最后一个,按照时间顺序先传的在前面,我想后传的在前面,上次有个朋友帮我了,但是由于我是一个外行,忘了。现在请朋友再帮我一下啊,谢谢!QQ:540732518 备注请提示:排序。
可能的代码:ub ShowClassGuide()
response.write " <a href='Products.asp'>ÊÓƵ</a> >>"
if BigClassName="" and SmallClassName="" then
response.write " ËùÓÐÊÓƵ"
else
if BigClassName<>"" then
response.write " <a href='Products.asp?BigClassName=" & BigClassName & "'>" & BigClassName & "</a> >> "
if SmallClassName<>"" then
response.write "<a href='Products.asp?BigClassName=" & BigClassName & "&SmallClassName=" & SmallClassName & "'>" & SmallClassName & "</a>"
else
response.write "ËùÓÐСÀà"
end if
end if
end if
end sub"/>
问题描述:
我现在的视频排序【http://www.jkw.sh.cn/Product.asp?BigClassName=影视剧院&Smallclassname=故梦】第一集是第一个,我现在需要把它放到最后一个,按照时间顺序先传的在前面,我想后传的在前面,上次有个朋友帮我了,但是由于我是一个外行,忘了。现在请朋友再帮我一下啊,谢谢!QQ:540732518 备注请提示:排序。
可能的代码:ub ShowClassGuide()
response.write " <a href='Products.asp'>ÊÓƵ</a> >>"
if BigClassName="" and SmallClassName="" then
response.write " ËùÓÐÊÓƵ"
else
if BigClassName<>"" then
response.write " <a href='Products.asp?BigClassName=" & BigClassName & "'>" & BigClassName & "</a> >> "
if SmallClassName<>"" then
response.write "<a href='Products.asp?BigClassName=" & BigClassName & "&SmallClassName=" & SmallClassName & "'>" & SmallClassName & "</a>"
else
response.write "ËùÓÐСÀà"
end if
end if
end if
end sub
问题解答:
if BigClassName<>"" then
sqlProduct=sqlProduct & " and BigClassName='" & BigClassName & "' "
if SmallClassName<>"" then
sqlProduct=sqlProduct & " and SmallClassName='" & SmallClassName & "' "
end if
end if
sqlProduct=sqlProduct & " order by id ASC"
把其中的ASC 改为DESC就可以了