That does it! Thanks!
Yes, the loops has always been closed at the end.
But I haven’t really understood the closing php tags (<?php ?>). Sometimes they occur within {}-clams but this time they really made a mess.
Note, I’m new at this, and I’m learning by the copy-paste-watch-read-and-learn-method. ??