Changeset 112 for Dev/trunk/questioncreation.php
- Timestamp:
- 09/19/11 16:29:02 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/trunk/questioncreation.php
r107 r112 1 1 <?php 2 2 require 'classes/master.php'; 3 4 $questionDBI = new QuestionCreationDatabaseInterface();5 3 6 4 /* If a question is saved */ 7 5 if(isset($_POST['questionCode'])) 8 6 { 7 $questionDBI = new QuestionCreationDatabaseInterface(); 9 8 echo $questionDBI->setQuestionInfo($_POST); // save to DB 10 9 } 11 10 12 $existingQuestions = $questionDBI->getExistingQuestions(); 13 var_dump($existingQuestions); 11 $questions = Loader::loadQuestions(); 12 var_dump($questions); 13 14 //$dbi = new QuestionCreationDatabaseInterface(); 15 //$info = $dbi->getQuestionInfo("testcode1"); 16 17 //var_dump($info); 14 18 15 19 ?> … … 32 36 <?php var_dump($_POST); ?> 33 37 <?php 34 new QuestionCreationTool( );38 new QuestionCreationTool($questions); 35 39 ?> 36 40 </div>
Note: See TracChangeset
for help on using the changeset viewer.