[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phptest-users] To Randomize or not to Randomize
From: |
TW-2 |
Subject: |
[Phptest-users] To Randomize or not to Randomize |
Date: |
Sun, 19 Jan 2003 04:05:59 -0700 |
If you do not want random questions, comment out the old function (do not
delete it in case this doesn't work for you!!) and change the function in
ctest.inc.php
function randomize($required)
{
global $db, $user, $questions;
$result = $db->query("SELECT question_id FROM questions WHERE
required = $required AND subject_id = {$this->info['subject_id']}");
// get number of questions in skill level
if (!$numrows = $db->num_rows($result)) {
return FALSE;
}
$count = 0;
while ($row = $db->fetch_object($result)) {
$this->questions[$count++] = $row->question_id;
}
- Re: [Phptest-users] Help with java and PHP timer for PHPTest, (continued)
- Re: [Phptest-users] Help with java and PHP timer for PHPTest, Brandon Tallent, 2003/01/17
- Re: [Phptest-users] Help with java and PHP timer for PHPTest, Kathleen A . Ferraro, 2003/01/17
- Re: [Phptest-users] Help with java and PHP timer for PHPTest, Dan Kegel, 2003/01/17
- Re: [Phptest-users] Help with java and PHP timer for PHPTest, Kathleen A . Ferraro, 2003/01/17
- [Phptest-users] OT: Flash considered harmful? (was: Help with java and PHP timer for PHPTest), Dan Kegel, 2003/01/17
- Re: [Phptest-users] OT: Flash considered harmful? (was: Help with java and PHP timer for PHPTest), Dan Kegel, 2003/01/17
- Re: [Phptest-users] Help with java and PHP timer for PHPTest, TW-2, 2003/01/18
- Re: [Phptest-users] Help with java and PHP timer for PHPTest, Kathleen A . Ferraro, 2003/01/18
- Re: [Phptest-users] Help with java and PHP timer for PHPTest, Wieland Große, 2003/01/17
- Re: [Phptest-users] Help with java and PHP timer for PHPTest, TW-2, 2003/01/18
- [Phptest-users] To Randomize or not to Randomize,
TW-2 <=
- Re: [Phptest-users] To Randomize or not to Randomize, TW-2, 2003/01/19