.i have the following code:
session_start(); $host = \'localhost\'; $user = \'root\'; $pw = \'\'; $db = \'pmdb\'; mysql_connect($host,$user,$pw); mys
SELECT * FROM questions WHERE QuizID=1 ORDER BY RAND() LIMIT 5
Will get you 5 random rows. This isn't super-efficient for a very large table, but I'm guessing that's not your case.