<%@ language=vbscript %> <% OPTION EXPLICIT %> Downloads: Welcher Song gefällt Dir am Besten? Statistik

<% dim objconn, objrs, gesamt, rs_c,quotient,zahl dim song1,song2,song3,song4,song5,song6,song7,song8,song9,song10,song11 set objconn = server.CreateObject("ADODB.Connection") set objrs = server.CreateObject("ADODB.RECORDSET") objconn.ConnectionString="DRIVER={MySQL};SERVER=localhost;"_ &"DATABASE=master_base_de;UID=master_base_de;PWD=niCx3i76;" objconn.Open 'Zählkriterien festlegen' gesamt="select count(song) as Anzahl from BesterSong" song1="select count(song) as Anzahl_song1 from BesterSong where song = 'gitarre_funky'" song2="select count(song) as Anzahl_song2 from BesterSong where song = 'sommerhit'" song3="select count(song) as Anzahl_song3 from BesterSong where song = 'zwischenmahlzeit'" song4="select count(song) as Anzahl_song4 from BesterSong where song = 'ostern2003'" song5="select count(song) as Anzahl_song5 from BesterSong where song = 'die_polka2'" song6="select count(song) as Anzahl_song6 from BesterSong where song = 'the_call'" song7="select count(song) as Anzahl_song7 from BesterSong where song = 'blume'" song8="select count(song) as Anzahl_song8 from BesterSong where song = 'bad_endorf'" song9="select count(song) as Anzahl_song9 from BesterSong where song = 'chillout_rock'" song10="select count(song) as Anzahl_song10 from BesterSong where song = 'ungefaehr'" song11="select count(song) as Anzahl_song11 from BesterSong where song = 'da_house'" 'Abfrage gesamt' objrs.open gesamt ,objconn, 3,3 %> Welcher Song gefällt Dir am Besten?
Master H Records wünscht viel Spaß beim Musik hören!

Folgende Stimmen wurden bislang abgegeben ...

ANZAHL DER BISHERIGEN STIMMEN: <% response.write (objrs("Anzahl")) objrs.close 'Abfrage song1' objrs.open song1 ,objconn, 3,3 %>

gitarre_funky: <% response.write (objrs("Anzahl_song1")) objrs.close 'Abfrage song2' objrs.open song2 ,objconn, 3,3 %>
sommerhit: <% response.write (objrs("Anzahl_song2")) objrs.close 'Abfrage song3' objrs.open song3 ,objconn, 3,3 %>
zwischenmahlzeit: <% response.write (objrs("Anzahl_song3")) objrs.close 'Abfrage song4' objrs.open song4 ,objconn, 3,3 %>
Ostern2003: <% response.write (objrs("Anzahl_song4")) objrs.close 'Abfrage song5' objrs.open song5 ,objconn, 3,3 %>
Die_Polka_2: <% response.write (objrs("Anzahl_song5")) objrs.close 'Abfrage song6' objrs.open song6 ,objconn, 3,3 %>
The_Call: <% response.write (objrs("Anzahl_song6")) objrs.close 'Abfrage song7' objrs.open song7 ,objconn, 3,3 %>
Blume: <% response.write (objrs("Anzahl_song7")) objrs.close 'Abfrage song8' objrs.open song8 ,objconn, 3,3 %>
Bad_Endorf_Über_Alles!: <% response.write (objrs("Anzahl_song8")) objrs.close 'Abfrage song9' objrs.open song9 ,objconn, 3,3 %>
Chillout_Rock: <% response.write (objrs("Anzahl_song9")) objrs.close 'Abfrage song10' objrs.open song10 ,objconn, 3,3 %>
ungefähr: <% response.write (objrs("Anzahl_song10")) objrs.close 'Abfrage song11' objrs.open song11 ,objconn, 3,3 %>
da_house: <% response.write (objrs("Anzahl_song11")) objrs.close set objrs = nothing objconn.close set objconn = nothing %>