View Single Post
  #12 (permalink)  
Old Sep 13th, 2006, 16:31
ukgeoff ukgeoff is offline
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Re: SE Friendly Dynamic Content

A few observations first:

You need to look at your layout as the three rows to which you refer do not resolve properly in Firefox and Opera so I'm guessing other browsers (not IE) will have a similar problem.

You have two empty <label> tags.

I would be inclined to set up a database that held the short text, either a link to the thumbnail or the thumbnail itself and a link to the full page.

You then have a div that is going to contain your three pieces and within that, you place a call to a php function which will generate the content.

That function will need to:
  • examine the database to find how many records there are
  • run the rand(1, maxrecords) function three times
  • keep a record of the record id so as to generate three different numbers
  • extract each of the record details in turn and build each section, probably as a div in its own right
  • return the built code to the containing div
How does that sound?
Reply With Quote