Poll on a Web Page
Not what you're looking for?
Please provide the code for the data storage file for the attached poll.
Helpful suggestions are below:
Create the database/Setup database tables
Identify a Primary Key
Store the questions results each time a response is submitted.
Use INSERT statements to populate the table
Issue SELECT SQL statement(s) that request all the possible answers for the poll.
Use a WHILE loop to extract info from the MySQL result set
Use the MySQL function COUNT() to count the number of records in the table
Display the number of votes the chosen answer received.
Purchase this Solution
Solution Summary
The expert provides the code for the data storage file for the attached poll. INSERT statements to populate the tables are determined.
Solution Preview
I used 3 tables. 1 table to store the possible colors, 1 table to store the possible seasons, and another to store the votes. There are an additional two attributes in that table, the sex and the marital status.
I chose to store each vote that comes in. This way we have the maximum ...
Purchase this Solution
Free BrainMass Quizzes
Basic UNIX commands
Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.
Word 2010: Tables
Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.
Javscript Basics
Quiz on basics of javascript programming language.
Inserting and deleting in a linked list
This quiz tests your understanding of how to insert and delete elements in a linked list. Understanding of the use of linked lists, and the related performance aspects, is an important fundamental skill of computer science data structures.
C# variables and classes
This quiz contains questions about C# classes and variables.