harlequin2k5
12-11-2005, 06:49 AM
Ok- so I'm building my committees page (http://www.suncoastwebdesigns.com/test/susbcba/committees.cfm) and there is a chairperson on each committee. So what I'd like to do is have committee chair display if committeechair=yes
<cfif getfinance.CommitteeChair is "1">
<cfoutput query="getfinance">
<p>#boardofficerfirstname# #boardofficerlastname#, Committee Chair</p>
</cfoutput>
<cfelse>
<cfoutput query="getfinance">
<p>#boardofficerfirstname# #boardofficerlastname#</p>
</cfoutput>
</cfif>
while the syntax of this piece is correct - it displays "committee chair" next to each name - I would like for that phrase to show for only the committee chair - which in this case would be Ron Averbeck
Any thoughts or am I just being stupid? :D I was thinking that I need to create separate queries for that type of output but before I went through all of that I thought I'd ask first - I can't seem to find any help through macromedia or my cf book
<cfif getfinance.CommitteeChair is "1">
<cfoutput query="getfinance">
<p>#boardofficerfirstname# #boardofficerlastname#, Committee Chair</p>
</cfoutput>
<cfelse>
<cfoutput query="getfinance">
<p>#boardofficerfirstname# #boardofficerlastname#</p>
</cfoutput>
</cfif>
while the syntax of this piece is correct - it displays "committee chair" next to each name - I would like for that phrase to show for only the committee chair - which in this case would be Ron Averbeck
Any thoughts or am I just being stupid? :D I was thinking that I need to create separate queries for that type of output but before I went through all of that I thought I'd ask first - I can't seem to find any help through macromedia or my cf book