/lenasys/0.1

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/lenasys/0.1

« back to all changes in this revision

Viewing changes to DuggaSys/quizAjax/getQuiz.php

  • Committer: gustav.hartvigsson at gmail
  • Date: 2013-04-04 11:04:16 UTC
  • mfrom: (11.1.4 duggor)
  • Revision ID: gustav.hartvigsson@gmail.com-20130404110416-gbdfygvxsbe40bfh
Merged Wikxen:s fixes for DuggaSys SQL.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
17
17
//header('Content-type: application/json');
18
18
header('Content-type: application/json; charset=utf-8'); 
19
 
 
 
19
include "../../php/dbconnect.php";
20
20
/* Function used to fetch quiz variant data */
21
21
function fetchQuizVariant($courseName, $quizNr, $quizVariantNr, $pdo) {
22
22
        $queryString=" SELECT QuizVariant.quizNr, QuizVariant.quizCourseName, QuizVariant.quizObjectIDs, Quiz.quizData 
36
36
        return $quizVariantData;
37
37
}
38
38
 
39
 
include "dbconnect.php";
 
39
 
40
40
 
41
41
//Check if the student is a praticipant of the course
42
42
$queryString="SELECT COUNT(*)