Re: Random Access to a Database
| From: | Zak Greant | Date: | Thu, 03 Aug 2000 05:25:50 +0000 |
| Subject: | Re: Random Access to a Database | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-1506@lists.php.net to get a copy of this message | ||
This will depend on the database that you are using. In MySQL you should be
able to randomly select a record.
Zak
----- Original Message -----
From: "Tom Peck" <tompeck@paradise.net.nz>
To: "PHP" <php-windows@lists.php.net>
Sent: Wednesday, August 02, 2000 9:20 PM
Subject: [PHP-WIN] Random Access to a Database
> Hello
>
> I'm trying to setup a page which accesses a random row from a database.
Is
> there a query function to do this - or do I first have to know how many
rows
> there are, and skip records until i come accross the randomly chosen one?
>
> Cheers
>
> Tom
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
> For additional commands, e-mail: php-windows-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>