January 2nd, 2010
At one time or another, most of us find the need to display a random item from a batch of items on our Web site. Whether you are displaying a random banner or promotional item on your home page, or displaying a random post on your blog, you need to know how to do so effectively and efficiently. This article will show you two ways to do so. First, you can use the RAND() function within MySQL. To do that, you would simply use something like: SELECT...


