Re: Random Record Retrieval
| From: | John W. Holmes | Date: | Sat, 22 May 2004 22:41:21 +0000 |
| Subject: | Re: Random Record Retrieval | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-186772@lists.php.net to get a copy of this message | ||
Robb Kerr wrote:
These are "inspirational" quotes that I want to appear at the bottom of the pages of my website. I want them to come up randomly with every page load.SELECT * FROM table ORDER BY RAND() LIMIT 1 -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com