I have quite a few testimonials I would like to rotate. Each testimonial is just a block of text. As it stands, all are displayed on every page. I want only one to be displayed.
I have about 20 pages that all have an include of "testimonials.php". Within this file, is all of the testimonials, in basic HTML.
I would like to, in PHP, display a random testimonial on each page. I'd prefer to keep all content within testimonials.php.
From my limited PHP experience, I was thinking I could assign each testimonial a $variable. ($test1="I love you...") and then randomly display each variable somehow. Possibly assign each variable a number, and use rand() to call up a random number.
Any thoughts / help?