the WAATKmembre recordset relies on the session variable, so you will need to session start code for it ot work
the headers already sent error occurs if there is balnk space between code tags.
My gues is that when you past the session start code in, you are leaving a blank line at the top or after the closing php tag ?>. any blank lines lines or space between the php blocks will cause this error.