Answered
Dreamweaver/ php recordsets
Hello,
I have a query which find featured products from the database. There are three in total. These products are then displayed in little boxes on the site, each with a different background colour. Usually, I would just repeat the region to show each product, but the background colour wouldnt change then.
What I wanted to do, was to say something like 'if this is row 1, then use this colour as the background to the box, if its row two, use this colour.. and so on.
Im ok at php, but by no means an expert so i need a bit of help on this one! any advice would be appreciated.
Thanks 🙂
I have a query which find featured products from the database. There are three in total. These products are then displayed in little boxes on the site, each with a different background colour. Usually, I would just repeat the region to show each product, but the background colour wouldnt change then.
What I wanted to do, was to say something like 'if this is row 1, then use this colour as the background to the box, if its row two, use this colour.. and so on.
Im ok at php, but by no means an expert so i need a bit of help on this one! any advice would be appreciated.
Thanks 🙂