Ok I'll try to make this situation as clear as possible.
Here are my researches :
1. You said that you used: "
ldap fonction" >>> ok, re-check again whether the error is coming from the "
ldap function" usage, which ldap function did you use before? If the error were really coming from that "
ldap function", then you must re-check that function as an error-triggered,ok.
2. You got the error:
Undefined index: memberof , this is my code on page:
And one of your code was:
$memberof = get_memberships($creator);
So, i suggest you to re-check your
get_memberships(yourArgument) function as the error arised. You can check whether your function's argument is really a certain data-type that will be executed within the function(=Did your function accept "
various string data-types", "
various number data-types", so on ?)
3. I also see your code :
$memberof = $_SESSION['MEMBEROF'];
Ok, you got two sessions here. Their names are MEMBEROF (=with uppercase) & memberof (=with lowercase). See the differences ?
The
$_SESSION['memberof'] got its own value from the right variable
$memberof (it's ok), but what about the other one? The
$_SESSION['MEMBEROF']; was only a definition from a plain variable
$memberof. You must know how to create the very right
$_SESSION variable. Here are what i mean:
> Below is the right session. Because it is indeed coming from a variable which has defined from your
get_memberships() function.
$memberof = get_memberships($creator);
$_SESSION['memberof'] = $memberof;
> So what i want to know is about this session
$_SESSION['MEMBEROF']; (=the uppercase). Are you sure this session has been created before, the first time you created within
session_start(); function.? If this session derives another page, it's already right. But i want to suggest you for a better clean programming, you must specify different name in order to avoid some errors that would arise in the future.
4. Ok, that's all from me. Always Re-check the functions that u have been playing with. Try to be involved in a better clean programming.
I'll try to catch up again for the reviews.