Ask a Question related to Dreamweaver AppDev, Design and Development.
-
pepps #1
Database Results
Hi
I have created a results page so that when a users types something in my
search field on the web the results page shows a list of products. But how can
i have it so that one record row is a different colour to the next record row.
thanks in advance
John
pepps Guest
-
random order results from MS access database
simple question but how could I go about order by search results randomly every time the page loads, or even better set it up so that each time the... -
Sorting Database Results in PHP
I am working on putting a drop down menu on my page which allows the user to change the order of which he/she wants to view the database results,... -
Database results error
I've originally posted this in the front page extensions page, but was told to stop by here. Here's a copy of what we said. Any ideas on how... -
Calender and Database Results
hi, I have just joined this site. I am currently working on a web application. One of the pages is a search page and displays a calender and some... -
Exporting as Excel (database results)
All, I am trying to export a result set as an excel spread sheet. Most of the time this works as expected, when a user chooses to save as excel... -
Joe Makowiec #2
Re: Database Results
On 22 Apr 2005 in macromedia.dreamweaver.appdev, pepps wrote:
You mean you want alternating row colors? The general theory,> I have created a results page so that when a users types something
> in my
> search field on the web the results page shows a list of products.
> But how can i have it so that one record row is a different colour
> to the next record row.
regardless of server model, looks something like this in pseudocode:
<tr<# if (rowNumber modulo 2) then #> class="colorclass"<# endif #>>
Specifically: you probably have some kind of rownumber counter. When you
do a modulo division by 2, you alternately get 0 (logical False in most
systems) and something else (logical True in most systems). On odd-
numbered rows, the condition is met, and the class attribute is added.
--
Joe Makowiec
[url]http://makowiec.net/[/url]
Email: [url]http://makowiec.net/email.php[/url]
Joe Makowiec Guest



Reply With Quote

