Ciao a tutti.
Mi spiegate dove sbaglio?
Il codice restituisce 'tipo non corrispondente' sulla variabile 'totale2':
:master:codice:SQL = " SELECT COUNT(VisitProven) as tot, " SQL = SQL & " VisitProven FROM tbl_sessioni " SQL = SQL & " WHERE ( VisitProven IS NOT NULL ) " SQL = SQL & " AND ( VisitProven <> '' ) " SQL = SQL & " GROUP BY VisitProven " SQL = SQL & " ORDER BY tot desc " SQL = SQL & " LIMIT 5 " Set recordset = Server.CreateObject("ADODB.Recordset") recordset.Open SQL, objconn while not recordset.eof totale = recordset("tot") totale2 = (tot * 100)

Rispondi quotando
