Responsive Quiz Application Using PHP, MySQL, jQuery, Ajax and Twitter Bootstrap Part-3
In this tutorial I made few changes in the Responsive Quiz Application Using PHP, MySQL, jQuery, Ajax and Twitter Bootstrap based on the request from users.
Note : You can refer my latest Quiz application
Responsive PHP Quiz Script
Before continuing this tutorial please refer my previous tutorials on this Responsive Quiz Application Using PHP, MySQL, jQuery, Ajax and Twitter Bootstrap.
1. Responsive Quiz Application Using PHP, MySQL, jQuery, Ajax and Twitter Bootstrap
2. Responsive Quiz Application Using PHP, MySQL, jQuery, Ajax and Twitter Bootstrap Part-2
Now user can able select number of questions to be showed on each pages.
Step 1:
where
$number_question — set number of questions to be showed on each pages.
I am selecting quiz questions from particular category that the user had chosen, then finding number questions in the result of getQuestions() finally stored questions count in $rowcount variable. Finally finding the remainder by dividing $rowcount with $number_question (number of question to be showed on each page.)
Step 2:
For example if I am going to show two questions on each page, if user choose category that contains only one question then I need to show that one question with finish button to complete quiz.
If $remainder<1 that means number questions less than number questions to be showed on each page, so I need to complete quiz with finish button.
if number questions goes greater than number questions to be showed on each page then following logic will come into play.
Download Premium Only Scripts & 80+ Demo scripts Instantly at just 1.95 USD per month + 10% discount to all Exclusive Scripts
If you want any of my script need to be customized according to your business requirement,
Please feel free to contact me [at] muni2explore[at]gmail.com
Note: But it will be charged based on your customization requirement