<%
k1="Sponsers "
k2=" "
SET rs=Server.CreateObject("ADODB.Recordset")
sqlst="SELECT count(*) FROM sponser_master where ucase(accountcategory)='OTHER' "
rs.open sqlst,con
if rs.bof and rs.eof then
ELSE
if not rs(0)=0 then
k1="Main Sponsors"
k2="Other Sponsors"
end if
end if
set rs=nothing
%>
| <%=k1%> |
<%
SET rs=Server.CreateObject("ADODB.Recordset")
sqlst="SELECT accountid,accountname,accountphoto1,accountlink FROM sponser_master where ucase(accountcategory)='MAIN' order by accountorder "
rs.open sqlst,con
if rs.bof and rs.eof then
ELSE
x=0
while not rs.eof and x <3
x=x+1
lid=rs(0)
lname=rs(1)
lpt="./driver/sponser1/"&rs("accountphoto1")
llink=rs(3)
%>
|
|
<%
rs.movenext
wend
end if
set rs=nothing
%>
|
<%=k2%> |
<%
SET rs=Server.CreateObject("ADODB.Recordset")
sqlst="SELECT accountid,accountname,accountphoto1,accountlink FROM sponser_master where ucase(accountcategory)='OTHER' order by accountorder "
rs.open sqlst,con
if rs.bof and rs.eof then
ELSE
x=0
while not rs.eof and x <6
x=x+1
lid=rs(0)
lname=rs(1)
lpt="./driver/sponser1/"&rs("accountphoto1")
llink=rs(3)
%>
 |
<%
rs.movenext
wend
end if
set rs=nothing
set con=nothing
%>
|