Send Quiz Reports to a Database Using PHP
Using PHP the sample
1. Find the "PHP" folder in C:\Program Files\Wondershare\QuizCreator\help\ (assuming your system driver is C:, and you installed QuizCreator in the default location).
2. Find the "conn.php" file and open it with Notepad. You will see the following scripts on the first few lines:

/*
connect to database - you can change params here to connect to your MySQL database.
Params:
$db_hostName: The host name or IP address of your MySQL server
$db_userName: The user accounts of your MySQL database
$db_passWord: The user password of your MySQL database
*/

$db_hostName = "localhost";
$db_userName = "root";
$db_passWord = "123456";

The text in orange explains the scripts in the next three lines. The text in red contains the parameters you need to configure for your web server. Suppose the host name and IP address of your MySQL server are "www.mywebspace.com" and "125.36.23.021" respectively and the user account of your MySQL database is "admin" and the password is "mypassword".

3. Replace "locahost" with "www.mywebspace.com" or "125.36.23.021", "root" with "admin", "123456" with "my password" and then save the file.

Important: If you do not know PHP programming, please do not change anything in this file except the lines listed here.

4. Upload all the files in the "php" folder to the web space that supports PHP scripts (for example: http://www.mywebspace.com/quiz).

5. Add "/get.PHP" after the URL of the web space where you have just uploaded the files in the PHP folder and enter the full address (for example: http://www.mywebspace.com/quiz/get.php)
in the URL field under "Post Result to Website" in QuizCreator.

QuizCreator ->Quiz Properties->Result ->Post Test Results to Web Database

create online quizzes -using PHP samples

6. When you have finished the above two steps, you can visit the /index.PHP page (for example: http://www.mywebspace.com/quiz/index.PHP) to view the results of all the quiz takers by using the default user name and password to log in..
The default user name is "admin "and the default password is "123456". You may change the password after login.
create flash quizzes-admin panel


A screenshot of the quiz report sent to the database using PHP:

create flash quizzes-- see quiz report

How to send quiz reports to the database using the ASP sample?


Try QuizCreator Free!
Buy QuizCreator now!
Back to top