Delete row if match is found with previous row
Content
Hi,
I have a report that brings back incidents and various bits of information. The Incident Reference number will be repeated but I've sorted it in a way where latest is first.
So if I have the first column something like
#101 | Resolved
#101 | Updated
#101 | New
The code below is what I thought would help. However when I run it, I still get the 3rd row showing. Any ideas?
Code Snippet
global $curr_ref; if ($rows[0][0]->val == $curr_ref) { unset($rows[0]); } $curr_ref = $rows[0][0]->val;
Tagged:
1