Random Script grabbing with PHP

TodoRojo

New Member
I have a main part of my page that shows two articles at a time from a blog. How could I put all the links for all of my blogs into a DB and have it just randomly pick two to show up? I know about RandomLine but not 100% sure if that's what I want to use in this case.


<div class="info_item float">
<h3><a class="transition" href="/blog/thought.php">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc dolor erat, mollis posuere semper vitae, sollicitudin rhoncus augue. Nullam scelerisque gravida mauris sit amet ultrices. Proin feugiat arcu quis odio lobortis consectetur. Sed vitae velit felis, id tincidunt nibh. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Morbi et lorem mi. Aliquam erat volutpat. <a class="transitional" href="/blog/thought.php">read on...</a></p>
</div>

Basically, I could put together one of the above templates for each of my links and then I'd like to have my page just randomly pick two of them to show.
 
Top