I noticed that on certain pages here on glowhost.com, the customer testomonial will change each time you refresh the browser, so you get a fresh, dynamic comment each time. That's cool stuff and I have done the same for one of my clients on www.biplaneride.com. I thought I'd pass it along, if it is of use for anyone else. Really, all the work is done in the SQL query. Check it out.
PHP Code:
$query = "SELECT commentData FROM comments WHERE LENGTH(commentDATA) < 150 AND approved = 1 ORDER BY RAND() LIMIT 1";
$result = mysql_query($query);
$num_results = mysql_num_rows($result);
Then later on, just echo out the results:
PHP Code:
echo htmlspecialchars(stripslashes(mysql_result($result, 0, "commentData")));
CharlesH