p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Dreamweaver (all versions) (http://p2p.wrox.com/forumdisplay.php?f=58)
-   -   Repeat Region with a difference. (http://p2p.wrox.com/showthread.php?t=23991)

fatmcgav January 17th, 2005 02:47 PM

Repeat Region with a difference.
Hey there.

I want to create a dynamic repeat region - with a difference. I dont want a bland list going down the page, i want to style it like this:
www.angelxtreme.com/products.php. I want the products to go three across, and down as many as needed to display the records. I want the product title, main image and blurb displayed, all of which is called from a MySql db. The blurb is going to be a cut down version of the main description, so how will i go about restricting it to x characters?

Any ideas on how i can go about this?


Imar January 17th, 2005 03:46 PM

Hi there,

Take a look at this tutorial:


It shows you the basic idea behind irregular repeated regions. I think it's easiest to create a standard repeated region, and then add some code to tweak it so it repeats three items on a row.
What you need to use is the Mod operator, to count the number of records you have already display.

What language are you building this in?


Imar Spaanjaars
Everyone is unique, except for me.

fatmcgav January 17th, 2005 05:00 PM

was plannin on doin it in php.

I'll have a lk at the link later.


All times are GMT -4. The time now is 08:42 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.