random images in banner





I’ve been trying to figure out how to use the mysql support built into MT to display a random image in a banner, in an attempt to create dynamic content instead of plain old boring, static content. I’ve been able to load images into a database (I think), but when I try to echo them to a page it looks like gobbledegook, must be something weird with my encoding. So I found a php script instead which seems to more-or-less work, but the randomness gets stuck sometimes and images get repeated.

Continue reading “random images in banner”