<% accessdb="votes_db" cn="driver={Microsoft Access Driver (*.mdb)};" cn=cn & "dbq=" & server.mappath(accessdb) set rs = server.createobject("ADODB.Recordset") 'This will summerize and count the records in the db sql= "select distinctrow sum(selection1) as sum_selection1, " sql= sql & "sum(selection2) AS sum_selection2, sum(selection3) AS sum_selection3, " sql= sql & "sum(selection4) AS sum_selection4, sum(selection5) AS sum_selection5, " sql= sql & "sum(selection6) AS sum_selection6, sum(selection7) AS sum_selection7, " sql= sql & "sum(selection8) AS sum_selection8, count(*) AS total_votes " sql= sql & "FROM bildschirm;" rs.Open sql, cn total1=rs ("sum_selection1") total2=rs ("sum_selection2") total3=rs ("sum_selection3") total4=rs ("sum_selection4") total5=rs ("sum_selection5") total6=rs ("sum_selection6") total7=rs ("sum_selection7") total8=rs ("sum_selection8") count=rs ("total_votes") %>

Welche Marke TFT-Bildschirme bevorzugen Sie?

Belinea <%= formatnumber((total1/count)*100,1) %>%
Sony <%= formatnumber((total2/count)*100,1) %>%
Samsung <%= formatnumber((total3/count)*100,1) %>%
HP <%= formatnumber((total4/count)*100,1) %>%
Compaq <%= formatnumber((total5/count)*100,1) %>%
Philips <%= formatnumber((total6/count)*100,1) %>%
Eizo <%= formatnumber((total7/count)*100,1) %>%
Andere <%= formatnumber((total8/count)*100,1) %>%

Total Stimmen: <%= formatnumber(count,0,0) %>