lupld Posted June 20, 2007 Share Posted June 20, 2007 Ok, I'm making a test using php, and I'm going to have a database, with a question, an id, and the four choices in the table. My problem is I need to randomly call out the questions, but not use more than 35, and not use the same question twice... the whole point is to simulate a test where either 35 or 50 questions are drawn from a pool of 300+ questions randomly, without repeating. there will probably be more problems when I start this... but that's what I need to know to start... thanks in advance... Link to comment https://forums.phpfreaks.com/topic/56312-creating-a-test-in-php-help/ Share on other sites More sharing options...
teng84 Posted June 20, 2007 Share Posted June 20, 2007 try the random function of php and put a condition not to repeat and the output id will be the one you will use to query your db id question hope that helps bro ASTIG!!! Link to comment https://forums.phpfreaks.com/topic/56312-creating-a-test-in-php-help/#findComment-278184 Share on other sites More sharing options...
lupld Posted June 20, 2007 Author Share Posted June 20, 2007 k, I'll see what I can get to work with that... till then I'm going to leave this unsolved... thanks Link to comment https://forums.phpfreaks.com/topic/56312-creating-a-test-in-php-help/#findComment-278190 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.