is there a possibility to retrieve a search from
an ldap search (for my case) which is in done php <?......?>
outside of it
to the body of my page?
to have a general idea i try to create a table that will be
completed dynamically from the search being done inside the php...
is that possible...?
example:
$dn = $info[$j]["dn"];
$filter=("cn=*");
$sr=ldap_list($ldapconn, $dn, $filter, $attrs);
$users=ldap_get_entries($ldapconn, $sr);
$x=0;
while ($x<=$users["count"]){
if ($users[$x]["objectclass"][0]=="posixGroup"){
echo '<span>';
echo $users[$x]["cn"][0];
echo '<br />';
echo '<img src="../images/sitemap2b.gif" border="0px"/>';
echo '</span>';
echo '<br />';
}
INTO A TABLE
<p>Available students</p>
<table>
<li id="$a counter"> .$search result. </li>
smting like that i have in mind...