note 94882 added to function.rand
| From: | IlanHazan at osu1 dot php dot net | Date: | Mon, 30 Nov 2009 21:19:38 +0000 |
| Subject: | note 94882 added to function.rand | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-163433@lists.php.net to get a copy of this message | ||
There is another way to produce random rows from MySQL (only) query and without order by rand.
It is using a User Defined Variables.
See http://www.mysqldiary.com/how-to-produce-random-rows-from-a-table/
----
Server IP: 69.147.83.197
Probable Submitter: 84.111.113.85
----
Manual Page -- http://www.php.net/manual/en/function.rand.php
Edit -- https://master.php.net/note/edit/94882
Del: integrated -- https://master.php.net/note/delete/94882/integrated
Del: useless -- https://master.php.net/note/delete/94882/useless
Del: bad code -- https://master.php.net/note/delete/94882/bad+code
Del: spam -- https://master.php.net/note/delete/94882/spam
Del: non-english -- https://master.php.net/note/delete/94882/non-english
Del: in docs -- https://master.php.net/note/delete/94882/in+docs
Del: other reasons-- https://master.php.net/note/delete/94882
Reject -- https://master.php.net/note/reject/94882
Search -- https://master.php.net/manage/user-notes.php