What I am attempting to do is to display the category heading if they are different from the previous record.
Category Heading 1
Category Heading 2
Category Heading 3
So I figured to use 2 , one to keep track of the current record's category heading and another 1 to keep track of the previous record's category heading. The current record category heading is placed in a . This is found in the tag. This works correct however the problem is when the variable that keep tracks of the previous record category.
I figured to use :
where $d = position() -1;
Value of $d is correct but the value of prev_category is always set to the first category heading of the first record.
I am wondering why the code is not working of saving the state of previous record's category heading.
How can I implement this...