NameSilo

Have a question it's either MYSQL or PHP.

SpaceshipSpaceship
SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
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
Close
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
Close
Oh, and is there a way to average a score on a quiz that I have?
 
0
Close
Could I see the quiz ?
 
0
Close
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
Close
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
Close
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
Close
0
Close
If your still having troubles, ill be happy to do it for you.
 
0
Close
Get in touch if you need help with it ;)
 
0
Close
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
Close
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
Close
CatchedCatched

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Switch between accounts
You can now stay logged in to more than one NamePros account in the same browser. Click your avatar, then "Accounts in this browser", to...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back