> i have a db and a table with id and questions
 > now i want these questions to be listed in a random order, 
 > is there a way to format my SQL query or do i need some PHP 
 > work to?

It's best achieved in sql:

SELECT ID, Question FROM Questions WHERE Some = Condition ORDER BY
RAND() LIMIT 10

Will get you up to ten randomised questions based on your 'where'
condition.

CYA, Dave



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to