Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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,...
    3. 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...
    4. 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...
    5. 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...
  3. #2

    Default Re: Database Results

    On 22 Apr 2005 in macromedia.dreamweaver.appdev, pepps wrote:
    > 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.
    You mean you want alternating row colors? The general theory,
    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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139