只把类别的前一级取出来,怎么写?
yok77 2007-08-31 11:23:23 最高一级是洲,下一级是国家,然后是省,最后是市。
如:亚洲-中国-四川-成都
现在可以取到市,但是如何取到省呢?
rs.open "select * from downtype where id="&ttid,conn,1,1
ts=rs("ts")
TN=split(rs("tname"),"|")
TI=split(rs("ts"), ",")
for i = 0 to ubound(TN)-1
if i=ubound(TN)-2 and ubound(TN)>1 then
TTY_id=TI(i)
TTY_name=TN(i)
end if
all_type_top_id=TI(i)
all_type_name=TN(i)
thistype=thistype & "-> <a href=""../sort/"&TI(i)&"_1.htm"">"&TN(i)&"</a>"
thistitle=thistitle & " - "&TN(i)&""
ttype=TN(i)----这里是市
tprov=?--------这里想要只得到省
next
rs.close