<!--#include file="conn1.asp" -->
<%
sql="select ballottop,mymode from ballottop" 
		set rs=server.createobject("adodb.recordset")
			rs.open sql,conn,3,2
	Response.Write "&mymode="& int(rs("mymode"))
	Response.Write "&batxttop="& rs("ballottop")
	sql="select * from ballot where ballot<>'' ORDER BY id asc"
		set rs=server.createobject("adodb.recordset")
			rs.open sql,conn,3,2
	For i=1 to 5
	if rs.eof then Exit for
		batxt=batxt & flashSql(rs("ballot")) & "chr(124)"
		bahitid=bahitid & flashSql(rs("id")) & "chr(124)"
		bahit=bahit & flashSql(rs("hit")) & "chr(124)"
		rs.movenext
	Next
	Response.Write "&batxt="& batxt
	Response.Write "&bahitid="& bahitid
	Response.Write "&bahit="& bahit
	Response.Write "&bamyall="& rs.RecordCount
	Response.Write "&ff=aaaa"
set rs=nothing
set conn=nothing	
%>