NameSilo

Have a question it's either MYSQL or PHP.

Spaceship Spaceship
Watch

Coolprogram

Established Member
Impact
7
I have a question it's either MYSQL or PHP. I think that it is MYSQL but i am not sure if you can do this with PHP (Like everything else.) Okay i want to make a poll on my website. But all i have been able to make is a Thing that says you have selected PHP or something. How would i make it show the results of % that have voted what they said? Thanks for the help,
-Coolprogram
P.S. Man i have a lot 'o questions
EDIT: Here is what i have been doing. www.tuttorial.com/index.php
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
You will have to record everytime somebody votes, what they vote, and all those things.

After words you will have to do this.
Total of all votes / (<- DIVIDED BY) Number of Voters.

For each topic in the poll.

PHP:
<?php
$votes = 1000;
$numofvoters = 10;

// Sometimes people will bracket these to make them look nicer
$total = $votes/$numberofvoters;

print $total;

?>
iNod
 
0
•••
Oh, and is there a way to average a score on a quiz that I have?
 
0
•••
Could I see the quiz ?
 
0
•••
yeah sure why not. www.tuttorial.com/html.php . There you go. I just want to like get averages i dont know how to do that either so take a look and tell me what i've got to do.
 
0
•••
Well..

Did you store all the results in some kind of db or somehow? If so you can just take the number right and divide by number of questions.

iNod
 
0
•••
BNo i didn't. I am not very good at all with MYSQL besides making DB's and Users can you help me? With the code?
 
0
•••
0
•••
If your still having troubles, ill be happy to do it for you.
 
0
•••
Get in touch if you need help with it ;)
 
0
•••
Okay yeah i need help. I need the actual code i have db created already it is MYSQL. So can somone help me?
TY
 
0
•••
also

There is a ton of Free nice poll scripts very nice once for free can find on Google to Download Save the headace might want to look into it
 
0
•••
Appraise.net

We're social

Unstoppable Domains
Domain Recover
DomainEasy — Live Options
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back