mam oto taki kod :
CODE
for ($item = 0; $item < $ldapResults['count']; $item++) {
// echo $ldapResults[$item][1];
for ($attribute = 0; $attribute < $ldapResults[$item]['count']; $attribute++) {
$data = $ldapResults[$item][$attribute];
echo $data.$ldapResults[$item][$data][0];
.
.
.
// echo $ldapResults[$item][1];
for ($attribute = 0; $attribute < $ldapResults[$item]['count']; $attribute++) {
$data = $ldapResults[$item][$attribute];
echo $data.$ldapResults[$item][$data][0];
.
.
.
wynik pobrania z ldap wyglada mniej wiecej tak:
CN: abc
gibenname: def
itd...
Teraz chcialbym wyswietlic tylko 1 lub 2 elementy z bazy i zeby to byly same wartosci atrybutow, czyli cos takiego:
abc
def
itd.
udalo mi sie napisac kod co wyswietla sam typ atrybutu, czyli:
CN:
givename:
itd...
ale kompletnie nie moge wpasc na to jak wyswietlic tylko same wartosci atrybutow.
Moze ktos wie jak to zrobic?