893Chapter 46A Trivia Gameupper_limit, lower_limit, (Web host) scaling_typefrom questionwhere id

893Chapter 46A Trivia Gameupper_limit, lower_limit, scaling_typefrom questionwhere id = $question_id ; if (!$this->_dbConnection) { $this->_dbConnection = $this->gameParameters->getDbConnection(); } if ($this->_dbConnection && is_resource($this->_dbConnection)) { $result = mysql_query($query, $this->_dbConnection); if ($row = mysql_fetch_assoc($result)) { $this->currentQuestion = new Question( $row[ id ], $row[ question ], $row[ answer ], $row[ lower_limit ], $row[ upper_limit ], 10, $row[ scaling_type ]); $this->_questionsAskedAtLevel++; } else { throw new Exception( Problem retrieving question from database ); } } else { throw new Exception( Problem querying question database ); } } else { throw new Exception( Could not find any questions to ask ); } } function _setupQuestionIds () { $this->_questionIdsAtLevel = $this->_getQuestionIdsAtLevel($this->_level); } function _getQuestionIdsAtLevel ($level) { // to be used at time of graduation to a new level - // retrieves the new ids (only) of all questions at// the level, and shuffles them into a random order. $return_array = array(); $query = select id from question where level = $level ; Continued52
We recommend high quality webhost to host and run your jsp application: christian web host services.

Leave a Reply