Filter my array output
Hi,
I'm no expert, just self taught. So please bear with me and excuse my ignorance.
I need a way to loop through a database to populate an array (which I can do) Then I want to output only the array result based on a another query from the database.
So, this is what I have so far
<!--- Declare the array --->
<cfset myarray=arraynew(2)>
<!--- Populate the array row by row --->
<cfloop query="rs_getrate">
<cfset myarray[CurrentRow][1]=rank_name>
<cfset myarray[CurrentRow][2]=rate_dollar>
<cfset myarray[CurrentRow][3]=rate_ot>
<cfset myarray[CurrentRow][4]=rate_dt>
<cfset myarray[CurrentRow][5]=rate_loa>
<cfset myarray[CurrentRow][6]=currentrow>
<cfset myarray[CurrentRow][7]=rank_ID>
</cfloop>
Now I want to output the array result where (myarray[CurrentRow][7]=rank_ID) equals (<cfoutput>rs_getlems.rank_ID</cfoutput>)
Any help on this matter would be greatly appreciated.
Thanks in advance.
