[Resolvido] Ai galera como mudar o farmato de exibição da enquete
sql = "insert into ballot (ip, selection" & u_input &") "
sql = sql & "values ('" & u_ip & "',1)"
rs.Open sql, cn
end if
sql= "select distinctrow sum(selection1) as sum_selection1, "
sql= sql & "sum(selection1) AS sum_selection2, count(*) AS total_votes "
sql= sql & "FROM ballot;"
rs.Open sql, cn
total1=rs ("sum_selection1")
total2=rs ("sum_selection2")
count=rs ("total_votes")
%>
<br>
A<img src="images/red.jpg" height="10" width="<%= (total1)%>">
<%= formatnumber(total1) %><br>
B<img src="images/yellow.jpg" height="10" width="<%= (total2)%>">
<%= formatnumber(total2) %><br>
Total Votes: <%= formatnumber(count,0,0) %><br>
<% if been_here_before <> "No" then %>
This user has voted before and this one was <u>not</u> counted.....
<% else %>
This user has <u>not</u> voted before and this one was counted.....
<% end if %>
<br>
The I.P. Address is <%= u_ip %>
<% end if %>
Discussão (8)
Carregando comentários...