OK, so I don't even know if what I am trying to do is
possible, but here goes...
I have one table, practiceArea, that is basically a lookup
table, with the fields id, areaName, and anchor.
That table is relational to a larger table, mentors, which
pulls the id number from practiceArea that is applicable to each
record.
I am trying to run a query that loops through each id value
dynamically, to avoid having to write 57 queries, one for each
record in the practice Area table, and then display navigation
generated from the query, where if the recordcount neq 0, the
areaName shows up. That was probably really confusing.
When I look at the page live, I am getting the following
error:
nvalid CFML construct found on line 202 at column 90.
ColdFusion was looking at the following text:
#
The CFML compiler was processing:
* a cfif tag beginning on line 202, column 74.
200 : <p>
201 : <cfoutput>
202 : <cfif getMentors_#id#.recordCount neq 0>
203 : <cfloop query="getMentors_#id#">
204 : <a href="anchor">areaName</a> |
So, I'm not sure if the query is running correctly, and I
just need to figure out the correct way to nest the # marks, or if
there's something weird going on with the query itself. Here's my
code... Please help! Thanks.