penguinspeaks
Technical User
Here is my code
In theory, this should check against the database table to see if the value has been entered, if not, enter it, and if so, go back to the loop. THe first time I tested this, it worked fine. Every time I have tested after this, it keeps timing out.
the vcnt2 variable is a count of players in the table.
Can anyone see why this would time out? For the example I have shown, it is only 8 for the max
Code:
Dim my_num,max,min
max=cint(vcnt2)
min=1
x = 1
do while x < max+1
Randomize
my_num=int((max-min+1)*rnd+min)
set chk1 = conn.execute("select * from bracket_ where t_id = "&t_id&" and pos_ = "&my_num&"")
if chk1.eof then
strSQL = "update bracket_ set pos_ = "&my_num&" where team_id = '"&x&"'"
conn.execute (strSQL)
x=x+1
else
end if
loop
In theory, this should check against the database table to see if the value has been entered, if not, enter it, and if so, go back to the loop. THe first time I tested this, it worked fine. Every time I have tested after this, it keeps timing out.
the vcnt2 variable is a count of players in the table.
Can anyone see why this would time out? For the example I have shown, it is only 8 for the max