PHP-MySQL-Quiz 1.0
requirements | installation | licence | disclaimer
Intro:
If you want to use this program on a website you can for free. If you make any code modifications (not display), please email rob@widgetmonkey.com . And don`t forget to rate the script on www.hotscripts.com!
You will need a webserver which has installed PHP 4, and mySQL version 3.2 upwards.
1. Unzip the.php and .css files and place them on your webserver (or locally, as you will have to make some changes and then upload) in a directory called quiz or whatever. Put the quiz1.php file into an html template or page of your site. This is what the public see. The other files (excluding quiz.sql and this file which should not be uploaded) are administration, and should be protected with some level of user authentication.
2. Open config.php and change the variables to your server specification.
3. You need to create the table quiz in your mySQL database. (You can alter the table name, but you need to change the entry in config.php, and the table name in quiz.sql.) Either via telnet, or using a program such as mySQLfront, or phpMyAdmin enter the information stored in quiz.sql. You can create a separate database for the quiz if you like, it`s up to you.
That`s it!
Optional extras:
Password proctection is best done with .htaccess and .htpassword files. There are tutorials out there to help.
You can move the config.php file to another directory if you want to make it safer - just remember to alter the include( ) statement in dbconnect.php.
Any questions, I am happy to help. Please email rob@widgetmonkey.com .
This quiz is free. Please leave the copyright notice intact. You may alter the scripts as you see fit. And if you make any improvements, please email me.
All and any use or modification of this program is at the user`s risk. No guarantees are made on the security of these scripts with regard to any webserver or other network.