Actually what I want is a <tr> starting with a content conditional image,
background color then output of a loop and more conditional database info as
you can see in the example the <cfif> conditional compares info from the
database against variables so I need to run each <cfif> in a separate query.
Yes I know I could just include them in the main query but its in a <loop>
so I would end up with ten miles of white space along with layout problem
that arise when formatting multiple table rows and columns inside loops.
This is where the problem is. I AM STUCK! There must be a tag to do this
correctly.

Here is a table layout, the loop is compared to a database table and where
they match it prints a record. The variables of these records are then
compared returning the row colors and image values. I hope this makes more
sense.

conditional row color| conditional image | loop output | conditional
database output | conditional database output |
conditional row color| conditional image | loop output | conditional
database output | conditional database output |
conditional row color| conditional image | loop output | conditional
database output | conditional database output |
conditional row color| conditional image | loop output | conditional
database output | conditional database output |

Any help is appreciated.

-Mark :o)





----- Original Message -----
From: Stephen Moretti <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 13, 2000 6:13 AM
Subject: RE: cfif inside loops and querys


> Mark,
>
> >
> > How can you use the output of a <cfif> block that is embedded in
> > a <cfoutput
> > query> outside of the </cfoutput> without having to repeat the
> > <cfif> block
> > . It seems silly to repeat these blocks.
> > This is a sample of what I mean. This code is purely an scenario of what
I
> > want to accomplish, it of course won't work like this.
> >
>
> Could you explain in words/pictures what exactly it is that you're
after....
>
> It looks kind of like you want to have a multi-column table with a record
in
> each column going from left to right, colouring the background of the <TD>
> according to the contents of the record.
> However, you could also be depicting one record per <TR> with a different
> field from the record in each column.
>
> Regards
>
> Stephen
>
> --------------------------------------------------------------------------
----
> Archives: http://www.mail-archive.com/[email protected]/
> To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
>

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to