Rapid fire radiology quiz module
A set of PHP/MySQL source code to display image and provide an interface for rapid response.
Try it here.
- Copy files to a web directory
- Create a new database on your MySQL server, and create the table using Centaur.sql For example: mysql -u username -p < Centaur.sql
- Add data for the test module into database mysql -u username -p < AddTestModule.sql
- Edit primerLib.php and ensure that the $db variable is properly configured to your MySQL database. For example: $db = new mysqli('localhost', 'username', 'password', 'centaur');
- Go to the index.php URL - if you are able to run the test quiz, you are ready to go!
- Use the testquiz module as a template. Copy and paste it into a new folder.
- Edit content.xml (using the comments contained within for guidance).
- Note that you can use regular HTML code as well as custom form fields which will be stored in the database as long as you follow the directions. Remember to escape all customized HTML code.
- Add an entry in the "quizzes" table in the MySQL database - the module ID, the URL, and a short description.
- Go to the proper URL to test it out. For example, if your module ID is 1234, then try: http://your.url.com/centaur/cover.php?moduleid=1234