Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Set Myconn = Server.CreateObject("ADODB.Connection")
Myconn.Open DB_CONNECTIONSTRING
SET MYTABLE= SERVER.CREATEOBJECT("ADODB.RECORDSET")
SET MYTABLE2= SERVER.CREATEOBJECT("ADODB.RECORDSET")
mySQL2 = "select * from Voting "
mytable2.open mysql2,myconn,3,3
mySQL = "select * from Votes WHERE PicID = " & yPicID & " ;"
mytable.open mysql,myconn,3,3
if mytable.recordcount = 0 then call yErrorZero else Call CarryOn
[COLOR=red] sub carryOn [/color]
Tvotes = 0
do while not mytable2.eof
fname = mytable2.fields("fieldname")
yfieldname = fname
yFieldName = replace(yFieldName," ","_")
yFieldName = replace(yFieldName,"*","")
yFieldName = replace(yFieldName,"!","")
yFieldName = replace(yFieldName,"""","")
yFieldName = replace(yFieldName,"£","")
yFieldName = replace(yFieldName,"$","")
yFieldName = replace(yFieldName,"%","")
yFieldName = replace(yFieldName,"^","")
yFieldName = replace(yFieldName,"&","")
yFieldName = replace(yFieldName,"(","")
yFieldName = replace(yFieldName,")","")
yFieldName = replace(yFieldName,"_","")
yFieldName = replace(yFieldName,"-","")
yFieldName = replace(yFieldName,"=","")
yFieldName = replace(yFieldName,"+","")
yFieldName = replace(yFieldName,"#","")
yFieldName = replace(yFieldName,"~","")
yFieldName = replace(yFieldName,"[","")
yFieldName = replace(yFieldName,"{","")
yFieldName = replace(yFieldName,"]","")
yFieldName = replace(yFieldName,"}","")
yFieldName = replace(yFieldName,";","")
yFieldName = replace(yFieldName,":","")
yFieldName = replace(yFieldName,"@","")
yFieldName = replace(yFieldName,"'","")
yFieldName = replace(yFieldName,"<","")
yFieldName = replace(yFieldName,",","")
yFieldName = replace(yFieldName,">","")
yFieldName = replace(yFieldName,".","")
yFieldName = replace(yFieldName,"?","")
yFieldName = replace(yFieldName,"/","")
yFieldName = replace(yFieldName,"\","")
yFieldName = replace(yFieldName,"|","")
yFieldName = replace(yFieldName,"¬","")
yFieldName = replace(yFieldName,"`","")
yfield = eval("mytable.fields(""" & yfieldname & """)" & VBcrlf)
Tvotes = Tvotes + yfield
mytable2.movenext
loop
%>
mytable2.movenext
loop
[red]end sub[/red]
%>