ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 30th, 2005, 05:29 AM
scotty9a9 scotty9a9 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2005
Posts: 2 scotty9a9 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 57 m 24 sec
Reputation Power: 0
Looping through variables

Was hoping that someone could help me loop through a series of variables.
My relevant code is

<cfset Product_Name = GetMortgages.Product_Name>
<cfset Initial_Interest_Rate6 = GetMortgageRates6.Initial_Interest_Rate>
<cfset Initial_Interest_Rate12 = GetMortgageRates12.Initial_Interest_Rate> etc

I then want to loop through all the records and display them in separate cells as follows.

<cfoutput>
<tr>
<td>#Product_Name#</td>
<td>#Initial_Interest_Rate6#</td>
<td>#Initial_Interest_Rate12#</td>
</tr>
</cfoutput>

Unfortunatley the above only gives me the first records and
not the entire list of product names in unique rows.

thanks in advance for any help you can provide

Reply With Quote
  #2  
Old June 30th, 2005, 09:19 AM
FALCONSEYE FALCONSEYE is offline
Permanently Banned
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 377 FALCONSEYE Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 1 Day 16 h 57 m 14 sec
Warnings Level: 15
Number of bans: 1
Reputation Power: 0
perhaps
<cfoutput query="GetMortgages">
#productname#
</cfoutput>

?

Reply With Quote
  #3  
Old July 1st, 2005, 06:24 AM
scotty9a9 scotty9a9 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2005
Posts: 2 scotty9a9 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 57 m 24 sec
Reputation Power: 0
Looping through set variables

This ends up producing too many repeated records. i.e it replicates the product name and interest rates multiple times in mutilple rows.

The Tables structure is

Product_Name.Mortgages
Initial_Interest_Rates.Mortgage_terms

These tables are joined by a field called mortgage_id

any other suggestions?

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > Looping through variables


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT