Hello I m looking for a php script that can manage quizzes. This is what I need done exactly. Let's say I have a circle made out of small dots when the player clicks on a dot he will be asked a question and will be offered 3 answers if he chooses the right answer the dot he clicked on will not be clickable no more and it will turn to another color. The dots are made out of small images. I was thinking about something mysql based please help or if you can guide me to the right place to look. Thank you
This is fairly simple to make, and there is no need for images (you can create the circles via CSS) - and you should use javascript (ajax) to fetch the question / answer-options and recolor the circles. It's basically maybe 100-200 lines of code. However, if you don't know anything about HTML/CSS, javascript and PHP, it's of course a challenge. However, not too hard to make, and a good project to learn what you need.
Thank you so much for taking the time to answer my question. Do you by any chance know of any script I can look at to have an idea of what i need done.
Well. What you need is as follows: a php file that reads the database and returns the question / answers for a given id - the id for the button clicked. The main page should also be a php file reading all (or a random subset) of the id's from the database. Then you need some javascript pushing the id (the info from the button clicked) and showing the content returned from the backend php file. On top of that you'd need css to style the different parts. Unfortunately, I don't have any examples, but this is mostly basic functionality, and it should be possible to gather the needed info bit by bit
There are many quiz scripts you can use: http://www.hotscripts.com/category/scripts/php/scripts-programs/tests-quizzes/
Here's a simple example (hardcoded) in HTML / CSS / jQuery : http://jsfiddle.net/uqa8m9fm/ You'll see that this is hardcoded - you'd probably want to get the content via PHP (reading the database) to be able to populate it without having to hardcode - if you'll always have the same amount of entries, you can hardcode the CSS, but the best would probably be to have a javascript-based posititioning going on, so you can add more or less as many entries as you can fit in the circle. (Base the positioning on the previous entries, and avoid overlapping, mostly). This is just a very, very basic example
Thank you so much guys for the great help. Popsicle. I like the idea behind the script you made. ThePhpMaster thank you for the link. I will try to download some of the script and try them up myself Have a wonderful day