Sorry my mistake. I didn't see the foreachloop above.
Try this. Update line 47 to:
foreach($rsMembers->Results as $rsMembersArr) {
Then update:
$rsMembers->getColumnVal("member_name")
to:
$rsMembersArr["member_name"]
If you still get an error, copy and paste the exact error message and I can try to help.