ldap_search

From: Date: Mon, 19 May 2003 18:11:00 +0000
Subject: ldap_search
Groups: php.general 
Request: Send a blank email to php-general+get-148190@lists.php.net to get a copy of this message
I am trying to create a page that will search an ldap server for results that match what a user inputs for a department or a location. I can do one, or the other, but I can't do both search by department and location. Here is the code that works for me. $department = "CED-Office"; $location = "LC/DC"; if ($ldap) { // Search surname entry
    $sr=ldap_search($ldap,"o=ISD11, c=US",  "physicaldeliveryofficename=$location");
This only does a search by location. How can I have it so that I can do a search by location and department without getting an error? Thanks, Mike

« previous php.general (#148190) next »