Re: random data from mysql db
| From: | Justin French | Date: | Mon, 05 Aug 2002 09:06:29 +0000 |
| Subject: | Re: random data from mysql db | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-111193@lists.php.net to get a copy of this message | ||
SELECT * FROM table ORDER BY RAND()
or something like that... check the MySQL manual for RAND()
Justin
on 06/08/02 8:28 AM, tux (tuxen@gimped.net) wrote:
>
> hey guys,
>
> what im trying to do is display a random entry from a mysql db, is there
> a function for this? or do i just have to generate a random number and
> go from there?
>
> jo
>
>
>