[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Sorting output to be returned to a HTML page using PHP

I think you may use :
              uksort($info[i],EntryCompare); /* info is char ***info */
instead of :
I use the following piece of code and it works :

 $justthese = array("uid");

 $sr=ldap_search($session_ldap, $base, $filter, $justthese);
 $info = ldap_get_entries($session_ldap, $sr);
 print "<select name=user>\n";
  for($i=0; $i<$info["count"]; $i++)
      $user = $info[$i]["uid"][0];
      print "<option value= $user >" . $user . "\n";
 print "</select><br>\n";

Luc Mazardo
Gnu Emacs:flame.el It's well known that life is worthlessness.