|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
recordcount in loop
ok, here's my situation. I have a query that pulls 4 ids. I then loop over that query to get all the info associated with those ids in another table. For id1 there are 3 records, for id2 2 records, for id3 5 records and id4 3 records. What I need to do is get the recordcount for that query that is in the loop. Of course, when I output the recordcount in the loop I get 3 2 5 3...What is the best way to add those values to get the total recordcount?
Thanks! |
|
#2
|
||||
|
||||
|
Have another count variable that doesn't reset with each iteration of the loop and increment it as well for each iteration.
__________________
Please don't PM me asking for solutions outside the scope of a thread. Keeping all responses in a thread stands to help others who come along later, which is after all what this forum's all about. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > Cold Fusion Development > recordcount in loop |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|