Re: how to display photos of the day?

From: Date: Tue, 29 Jan 2008 12:09:58 +0000
Subject: Re: how to display photos of the day?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-268242@lists.php.net to get a copy of this message
On Tue, 2008-01-29 at 18:33 +0800, jeffry s wrote: > i have a mysql table contain data about 1000 rows. i want to display any of > the photos randomly > and it is fixed for one day. > MySQL has a rand() function, so you could bomb that off as a select once a day on cron or something, or you could do a regular select and array_rand() it in PHP. --Paul

« previous php.general (#268242) next »