NYCPHP Meetup

NYPHP.org

[nycphp-talk] Random record from MySQL

nyphp at ph1l.de nyphp at ph1l.de
Thu Mar 11 10:42:34 EST 2004


Hello,

as far as i know there isn't a random function within mysql3 or mysql4. You
might create a random value using a php function and use this value as index
for retrieving a record.

Phil 

> -----Original Message-----
> From: talk-bounces at lists.nyphp.org 
> [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Jeff Siegel
> Sent: Thursday, March 11, 2004 4:32 PM
> To: NYPHP Talk
> Subject: [nycphp-talk] Random record from MySQL
> 
> How can I pull a record at random from a MySQL table?
> 
> Jeff Siegel
> 
> _______________________________________________
> talk mailing list
> talk at lists.nyphp.org
> http://lists.nyphp.org/mailman/listinfo/talk
> 
> 




More information about the talk mailing list