RE: [PHP] random generation

From: Date: Tue, 17 Oct 2000 05:26:08 +0000
Subject: RE: [PHP] random generation
Groups: php.general 
Request: Send a blank email to php-general+get-20522@lists.php.net to get a copy of this message
why not select * from questions put results into a mysql_array, and then shuffle_array? Not that this is necessarily a good way to do it... -----Original Message----- From: Kapil Bodhankar [mailto:kapil@archeanit.com] Sent: October 17, 2000 01:24 PM To: php-general@lists.php.net Subject: [PHP] random generation hi guys, i would like to get random questions displayed for my online examination.how do i get them displayed.i want to get 60 questions displayed randomly one after the other whenever i reload a page. infact i tried this: select * from questions order by Rand(); in Mysql, but this doesnot work. is there any other way to do it? -- Kapil Web Developer kapil@archeanit.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#20522) next »