Hmm, I really do not understand you, I'm really sorry :/
This if should check if there is 3 categories between before an new line, isn't that what you wanted?
and you may wanna declare $cstyle = 0;over the while loop.
This if should check if there is 3 categories between before an new line, isn't that what you wanted?
and you may wanna declare $cstyle = 0;over the while loop.