Mark,
If I understand you correctly, all you need to do is a join in your
query. Rather than having two queries, just have one:
<cfquery name="getInfo" datasource="#request.dsn#">
SELECT district_plan_documents.COLUMNNAME,
district_plan_section_headings.DP_Heading
FROM district_plan_section_headings INNER JOIN
district_plan_documents ON district_plan_section_headings.DP_catID =
district_plan_documents.DP_catID
ORDER BY DP_catID, Line_Order
</cfquery>
Then your output should look like this:
<cfoutput query="getDistrictPlanDocs" group="DP_catID">
#getDistrictPlanHeadings.DP_Heading#
<ul>
<cfoutput>
<li style="padding-bottom: 10px">
<a
href="#httpdir##docpath#/#Document_name#">#Document_name#</a></li>
</cfoutput>
</ul>
</cfoutput>
I think that's right. Might be some syntax problems in there, but that
gives you the idea. If this isn't what you meant, let me know.
Hope this helps,
Matthieu
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking
application. Start tracking and documenting hours spent on a project or with a
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:224144
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54