NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page Have a question it's either MYSQL or PHP.

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search
5 members in live chat ~  


Closed Thread
 
LinkBack Thread Tools
Old 10-11-2005, 01:56 PM THREAD STARTER               #1 (permalink)
NamePros Regular
Join Date: Jul 2005
Location: U.S.A.
Posts: 655
Coolprogram has a spectacular aura aboutCoolprogram has a spectacular aura about
 



Have a question it's either MYSQL or PHP.


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
Coolprogram is offline  
Old 10-11-2005, 03:30 PM   #2 (permalink)
Eating Pie
 
iNod's Avatar
Join Date: Nov 2004
Location: Canada
Posts: 2,267
iNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud of
 


Special Olympics AIDS/HIV Cystic Fibrosis Save The Children Baby Health Cystic Fibrosis
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 Code:
<?php
$votes 
1000;
$numofvoters 10;

// Sometimes people will bracket these to make them look nicer
$total $votes/$numberofvoters;
????: NamePros.com http://www.namepros.com/programming/130892-have-question-its-either-mysql-php.html

print 
$total;

?>
iNod
__________________
I feel old.
iNod is offline  
Old 10-11-2005, 05:02 PM THREAD STARTER               #3 (permalink)
NamePros Regular
Join Date: Jul 2005
Location: U.S.A.
Posts: 655
Coolprogram has a spectacular aura aboutCoolprogram has a spectacular aura about
 



Oh, and is there a way to average a score on a quiz that I have?
Coolprogram is offline  
Old 10-11-2005, 05:44 PM   #4 (permalink)
Eating Pie
 
iNod's Avatar
Join Date: Nov 2004
Location: Canada
Posts: 2,267
iNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud of
 


Special Olympics AIDS/HIV Cystic Fibrosis Save The Children Baby Health Cystic Fibrosis
Could I see the quiz ?
__________________
I feel old.
iNod is offline  
Old 10-11-2005, 05:49 PM THREAD STARTER               #5 (permalink)
NamePros Regular
Join Date: Jul 2005
Location: U.S.A.
Posts: 655
Coolprogram has a spectacular aura aboutCoolprogram has a spectacular aura about
 



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.
Coolprogram is offline  
Old 10-11-2005, 06:04 PM   #6 (permalink)
Eating Pie
 
iNod's Avatar
Join Date: Nov 2004
Location: Canada
Posts: 2,267
iNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud of
 


Special Olympics AIDS/HIV Cystic Fibrosis Save The Children Baby Health Cystic Fibrosis
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
__________________
I feel old.
iNod is offline  
Old 10-11-2005, 06:14 PM THREAD STARTER               #7 (permalink)
NamePros Regular
Join Date: Jul 2005
Location: U.S.A.
Posts: 655
Coolprogram has a spectacular aura aboutCoolprogram has a spectacular aura about
 



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?
Coolprogram is offline  
Old 10-11-2005, 06:22 PM   #8 (permalink)
Eating Pie
 
iNod's Avatar
Join Date: Nov 2004
Location: Canada
Posts: 2,267
iNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud of
 


Special Olympics AIDS/HIV Cystic Fibrosis Save The Children Baby Health Cystic Fibrosis
Sure.

For this I would theme it off a shopping cart. Use MySql to store a session id. Than withdraw it at the end. Keep updating it.

Here is a very nice tutorial on that.
http://www.phpbuilder.com/columns/evert20000816.php3

iNod
__________________
I feel old.
iNod is offline  
Old 10-12-2005, 10:35 AM   #9 (permalink)
New Member
Join Date: Oct 2005
Posts: 15
WebWizard is an unknown quantity at this point
 



If your still having troubles, ill be happy to do it for you.
WebWizard is offline  
Old 10-12-2005, 01:24 PM   #10 (permalink)
NamePros Member
Join Date: Dec 2003
Location: Warrington, UK
Posts: 174
Boardhost is on a distinguished road
 



Get in touch if you need help with it
__________________
www.Scene-Power.com - ***YOUR DEDICATED SERVER SOLUTIONS***
Boardhost is offline  
Old 10-12-2005, 05:41 PM THREAD STARTER               #11 (permalink)
NamePros Regular
Join Date: Jul 2005
Location: U.S.A.
Posts: 655
Coolprogram has a spectacular aura aboutCoolprogram has a spectacular aura about
 



Okay yeah i need help. I need the actual code i have db created already it is MYSQL. So can somone help me?
TY
Coolprogram is offline  
Old 10-13-2005, 01:14 AM   #12 (permalink)
NamePros Member
Join Date: Oct 2005
Posts: 56
palabara is an unknown quantity at this point
 



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
palabara is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
HOWTO: Install the Apache Web Server, Perl, PHP, and MySQL on Windows deadserious Webmaster Tutorials 96 05-27-2007 01:24 PM
Googlism - What does google think of you? deadserious The Break Room 55 12-15-2005 09:09 AM
Tutorial: How to Install Apache2 MySQL and PHP on Windows deadserious Webmaster Tutorials 35 09-21-2005 09:46 PM
Tutorial: Getting Started With MySQL (The Basics) deadserious Webmaster Tutorials 3 04-18-2004 01:17 PM

 
All times are GMT -7. The time now is 02:02 PM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger