- Home
- Categorie
- Coding e Sistemistica
- Coding
- Script superenalotto ma mi da un errore
- 
							
							
							
							
							
Script superenalotto ma mi da un erroreSalve a tutti i webmaster, ho creato uno script che raccoglie le ultime 18 estrazioni e che confronta i numeri più usciti, e quelli che non sono mai usciti, ma mi da un problema, ovvero non mi conteggia con precisione i numeri usciti più di una volta ignorando la doppia/terza/quarta uscita. Ad esempio il numero 90 che è uscito ben due volte, lo indica come uscito una sola volta, ma se lo cambio di posizione, allora lo conteggia. Strano non credete? Molto probabilmente c'è un errore nello script, che ho cercato in tutti i modi di scoprire.....ma non c'è stato nulla da fare. C'è qualche esperto webmaster che ha volglia di scoprire dove sta l'errore e aiutarmi a capire dove ho sbagliato? Si potrebbe poi fare in modo di inserire i numeri in un database invece di inserirli ogni volta nella pagina? Il database dovrebbe tenere solo 18 estrazioni ed eliminare automaticamente o manualmente l'estrazione oltre la 18° estrazione. Vi invio lo script qui di seguito. Grazie per l'aiuto! <% a = 1 
 b = 90ca = Array(16, 31, 41, 61, 65, 77) 
 cb = Array(9, 15, 19, 38, 48, 77)
 cc = Array(18, 23, 31, 38, 47, 51)
 cd = Array(24, 30, 42, 54, 84, 85)
 ce = Array(19, 22, 49, 65, 70, 87)
 cf = Array(17, 38, 42, 50, 68, 86)
 cg = Array(9, 16, 31, 43, 49, 83)
 ch = Array(6, 24, 55, 67, 70, 75)
 ci = Array(18, 20, 46, 54, 57, 65)
 cl = Array(13, 16, 45, 58, 63, 72)
 cm = Array(25, 32, 64, 74, 85, 90)
 cn = Array(46, 49, 61, 69, 74, 82)
 co = Array(4, 23, 24, 35, 77, 79)
 cp = Array(5, 49, 71, 83, 85, 88)
 cq = Array(6, 29, 54, 62, 72, 80)
 cr = Array(10, 16, 36, 70, 71, 73)
 cs = Array(8, 26, 32, 44, 82, 86)
 ct = Array(3, 7, 48, 67, 87, 90)response.write "<table border=2 width=700 height=500 align=center>" 
 for lotto = a to bif lotto = 1 then 
 response.write "<tr>"
 end if
 u = u+1s = 0 
 for x = 0 to 5
 if x = 0 then response.write "<th bgcolor=ffff00>" end ifif lotto = ca(x) or lotto = cb(x) or lotto = cc(x) or lotto = cd(x) or lotto = ce(x) or lotto = cf(x) or lotto = cg(x) or lotto = ch(x) or lotto = ci(x) or lotto = cl(x) or lotto = cm(x) or lotto = cn(x) or lotto = co(x) or lotto = cp(x) or lotto = cq(x) or lotto = cr(x) or lotto = cs(x) or lotto = ct(x) then response.write "<font color=""red"">" 
 response.write lotto & " "
 response.write "</font>"else s = s+1 
 if s = 6 then
 response.write lottoend if 
 end if
 if x = 5 then response.write "</th>" end if
 nextif u = 10 then 
 response.write "</tr><tr>"
 u = 0
 end ifnext 
 response.write "</table>"%> 
 
- 
							
							
							
							
							
<% a = 1 b = 90 ca = Array(16, 31, 41, 61, 65, 77) cb = Array(9, 15, 19, 38, 48, 77) cc = Array(18, 23, 31, 38, 47, 51) cd = Array(24, 30, 42, 54, 84, 85) ce = Array(19, 22, 49, 65, 70, 87) cf = Array(17, 38, 42, 50, 68, 86) cg = Array(9, 16, 31, 43, 49, 83) ch = Array(6, 24, 55, 67, 70, 75) ci = Array(18, 20, 46, 54, 57, 65) cl = Array(13, 16, 45, 58, 63, 72) cm = Array(25, 32, 64, 74, 85, 90) cn = Array(46, 49, 61, 69, 74, 82) co = Array(4, 23, 24, 35, 77, 79) cp = Array(5, 49, 71, 83, 85, 88) cq = Array(6, 29, 54, 62, 72, 80) cr = Array(10, 16, 36, 70, 71, 73) cs = Array(8, 26, 32, 44, 82, 86) ct = Array(3, 7, 48, 67, 87, 90) response.write "<table border=2 width=700 height=500 align=center>" for lotto = a to b if lotto = 1 then response.write "<tr>" end if u = u+1 s = 0 for x = 0 to 5 if lotto = ca(x) then s = s+1 if lotto = cb(x) then s = s+1 if lotto = cc(x) then s = s+1 if lotto = cd(x) then s = s+1 if lotto = ce(x) then s = s+1 if lotto = cf(x) then s = s+1 if lotto = cg(x) then s = s+1 if lotto = ch(x) then s = s+1 if lotto = ci(x) then s = s+1 if lotto = cl(x) then s = s+1 if lotto = cm(x) then s = s+1 if lotto = cn(x) then s = s+1 if lotto = co(x) then s = s+1 if lotto = cp(x) then s = s+1 if lotto = cq(x) then s = s+1 if lotto = cr(x) then s = s+1 if lotto = cs(x) then s = s+1 if lotto = ct(x) then s = s+1 next if s >0 then response.write "<th><font color=""red"">"& lotto & "<sup>" & s & "</sup></font></th>" else response.write ("<th>"& lotto & "<sup>" & s & "</sup></th>") end if if u = 10 then response.write "</tr><tr>" u = 0 end if next response.write "</table>" %>