From: "Payne" <[EMAIL PROTECTED]> > I am working on a project and I need to see sample quote for doing > random quotes. These quotes will be put from a database. Can some please > share me some sample code. Thanks.
If you're using MySQL, you can use SELECT quote FROM Quote ORDER BY RAND() LIMIT 1 to pull a single random quote from the database. I'm sure other databases have similar queries. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php