/    Sign up×
Community /Pin to ProfileBookmark

Help with a quiz script

I’ve found a pretty cool script called QuizOMatic ’76.

I’ve installed it and everything works quite well except the “resuts” (reporting) page.
Unfortunately, I’m not a programmer so I don’t know enough about what I’m looking at to fix it. I am a HS math teacher and could really benefit from getting this to work properly. If someone could give me some advise, I would be eternally grateful.

The original script can be seen and downloaded here:
[url]http://www.flashlightbrown.com/quizomatic76/[/url]

A wonderful (working) example of this script can be seen at:
[url]http://www.pucemoose.com/quizomatic/NES_easy_quiz.htm?[/url]

The results of everyone whose taken this quiz can be viewed on the “results.php” page:
[url]http://www.pucemoose.com/quizomatic/results.php[/url]
Here you can select a quiz (my implementation shows the three quizzes I have set up).

When you click on one of the quizzes (above), then it gives the results, with a graph. My implementation will not do this.

One of my quizzes can be seen at:
[url]http://robertfant.com/Quiz/quizomati…le_test_01.htm[/url]

A visitor can take this quiz, get their score, etc.
But, when I go to the “results.php” it shows all the quizzes but it will not show any of the data.
[url]http://robertfant.com/Quiz/quizomatic76/results.php[/url]

Again, if someone could help with this, I would appreciate it and you would be helping a LOT of teachers.

Thanks in advance for your time and effort,
Robert
Reply With Quote

to post a comment
PHP

4 Comments(s)

Copy linkTweet thisAlerts:
@dudhiJul 16.2007 — so how can u tell if everything is working fine ? When I was looking in the source code for ur website, it looked like it was going to this link "?testname=Quiz1".

Give a little more details about what you did.. if you were able to setup the mysql database as mentioned in the script.
Copy linkTweet thisAlerts:
@rfantauthorJul 16.2007 — Hi dudhi,

Thanks for taking the time to look at this, sorry about the broken link above, not sure how that happened.

Here's a couple of links to quizzes that should work OK.

http://robertfant.com/Quiz/quizomatic76/example_test_01.htm

This one has jsMath symbols embedded but should work.

http://robertfant.com/Quiz/quizomatic76/example_test_02.htm

++++++++++

How can I tell that everything is working fine?

Really, that is an assumption on my part. I assumed that the "results.php" page was going to the database and getting a list of all the quizzes to list on the page. Thus I am assuming that the database connection is being made properly. I know that is a lot of "assuming" on my part, but as a non-programmer, I am sometimes at the mercy of this type of guess work.

What other info can I give that will help you, help me?

I really do appreciate your effort.

Like I said, if I can get this going, it will be a tremendous help to a lot of teachers.

Thank you,

Robert
Copy linkTweet thisAlerts:
@dudhiJul 18.2007 — K, finally I was able to find what might have been causing it.

open results.php in a notepad and right after this line

$db = Open_Database ($server, $user, $password, $database);

add these three lines

$first = ($_SERVER["REQUEST_URI"]);

$value = explode("=",$first);

$testname = ($value['1']);

From this atleast you will get the results and will get it going. The graph wasn't working for me right now-- It may or may not work for me right now, but I might be able to get a better answer for that sometime this week. But for now you can get this going by using this.

I will update with a better solution to this problem and the graph sometime soon.
Copy linkTweet thisAlerts:
@rfantauthorJul 18.2007 — Wow, it is working very well.

In the results bar graph, two of the bars are being drawn below the x-axis instead of above (very interesting). Is this what you meant by "the graph not working"?

Dudhi, you have my complete gratitude. I am very appreciative of your efforts. I have been trying to do something like this for a long, long time.

I will be sharing this script with all my teacher colleagues, giving you much credit.

Thank you a million times over,

Robert
×

Success!

Help @rfant spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.28,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...