[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ic] alternating within a loop (to make a table)


I wanted to list all product groups in a 2 column table but can't figure out how to use alternate tag to close the <tr> tag. I found the following example, but it seems to only work with the search-list tag?

[search-region]

[search-list]

        <td>
	  <a href="[area [item-code]]">
          <img src="thumb/[item-field thumb]" border="0">
          </a>
        </td>

[item-alternate 3]
 </tr>
 [else] [/else]
[/item-alternate]

[/search-list]

[/search-region]

Here is what I'm trying to do (maybe I am doing it the wrong way?)

[query sql="select distinct prod_group from products"
type=list
]
[list]
[list-alternate 2]
 Every 2nd one<br>
 [else]Other<Br> [/else]
[/list-alternate]

[/list]
[/query]

Thanks for any suggestions.

_________________________________________________________________
Is your PC infected? Get a FREE online computer virus scan from McAfee® Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

_______________________________________________
interchange-users mailing list
suppressed
http://www.icdevgroup.org/mailman/listinfo/interchange-users


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.