Hope you can help me, I have a list of data which I'm dumping to the screen and If a record header matches another I dont want it to be repeated, if it doesnt then return the next line of data.
I've managed to get the headers to work correctly but now in certain circumstances it ignores the end table and div tags.
I've looked through the code numerous times but cant figure out how to add the tags where it's finishing, I've attached the code in a txt file with links to a working example and the incorrect example.
Can anyone tell me where I'm going wrong and where to add the end table and div tags?