Couldn't you also just reference the query row instead of maintaining a
separate counter?

Andy

----- Original Message -----
From: <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Wednesday, April 04, 2001 4:37 AM
Subject: Re: some same value into one


>
> Use the following syntax.
> <cfquery>
>      <cfif (counter mod 2) is 0>
>           display the result here
>      counter ++
>      </cfif>
>
> </cfquery>
>
> Every time one record set will be skipped .
> Hope for the best.
>
>
>
>                     summy h
>                     <summyh@yahoo        To:     CF-Talk
<[EMAIL PROTECTED]>
>                     .com>                cc:
>                                          Subject:     some same value into
one
>                     04/04/01
>                     07:17 AM
>                     Please
>                     respond to
>                     cf-talk
>
>
>
>
>
>
> Hi,
>
> I got some value from the cfquery like
>
> (John, John, Smith, Smith, Smith, Bob, Bob)
>
> Now I want to display these value on the web page like
>
> (John, Smith, Bob)
>
> I'm stuck, how do you program and make it possible in
> coldfusion?
>
> TIA
>
> Hosaka
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to