This script relies on a flat-file of trivia questions, which contains the values shown in the table below. It will create a random quiz each time it is run, depending on the user's selections in the demo below. Scores and quiz types are kept live as well for a "brag-board". This script can be customized in a *lot* of different directions, so feel free to ask for a quote with your own ideas inserted.
There is also a maintenance script that is not shown here for adding and removing questions. Once installed, TriviaPro can be maintained by someone with zero PERL/CGI skills.
| Question number | Category | Difficulty Level | Score Value | Submitted By | Question | Answer | Wrong answer 1 | Wrong answer 2 | Wrong answer 3 | Wrong answer 4 |
So, a typical line in the trivia file will look like this:
1|singers|2|5|Marc Bissonnette|Which band member of AC/DC wears a school uniform on stage?|Angus Young|Ozzy Osbourne|Brian Adams|Johnny Cash|Alvin The Chipmunk
You can see what the trivia file looks like here. TriviaPro will display this to you in an HTML Table format, for ease of viewing.
You will notice five additional fields in the records, "field1" through "field5". These are there for expansion or further functionality purposes.
Below is an example of the trivia script running with full functionality: