Can you explain the logic for your code?
For example:
Why the counter?
When in the search do you know that the condition you are looking for is true?
Type: Posts; User: Norm
Can you explain the logic for your code?
For example:
Why the counter?
When in the search do you know that the condition you are looking for is true?
Another comment on coding standards.
Do NOT hide } on the same line with a statement.
The ending } should be on a line by itself and in the same column as the statement line with the beginning {....