mem = unserialize($t[0]); $nm = trim(strtolower($this->mem['lastname'])); //print("$nm || $lookfor
"); if(strstr($nm,$lookfor)) { $this->put_entry(); } } } function get_by_areacode() { $_SESSION['found'] = "no"; if(!$_POST['areacode'] || $_POST['areacode'] == " ") { return(false); } else { $lookfor = trim(strtolower($_POST['areacode'])); } $dirp = opendir("/usr/local/etc/hda/members"); while($n = readdir($dirp)) { $_SESSION['fn'] = "/usr/local/etc/hda/members/$n"; $t = file($_SESSION['fn']); $this->mem = unserialize($t[0]); $nm = trim(strtolower($this->mem['phone'])); //print("$nm || $lookfor
"); if(strstr($nm,$lookfor)) { $this->put_entry(); } } } function get_by_zip() { $_SESSION['found'] = "no"; if(!$_POST['zip'] || $_POST['zip'] == " ") { return(false); } else { $lookfor = trim(strtolower($_POST['zip'])); } $dirp = opendir("/usr/local/etc/hda/members"); while($n = readdir($dirp)) { $_SESSION['fn'] = "/usr/local/etc/hda/members/$n"; $t = file($_SESSION['fn']); $this->mem = unserialize($t[0]); $nm = trim(strtolower($this->mem['zip'])); //print("$nm || $lookfor
"); if(strstr($nm,$lookfor)) { $this->put_entry(); } } } function get_by_city() { $_SESSION['found'] = "no"; if(!$_POST['city'] || $_POST['city'] == " ") { return(false); } else { $lookfor = trim(strtolower($_POST['city'])); } $dirp = opendir("/usr/local/etc/hda/members"); while($n = readdir($dirp)) { $_SESSION['fn'] = "/usr/local/etc/hda/members/$n"; $t = file($_SESSION['fn']); $this->mem = unserialize($t[0]); $nm = trim(strtolower($this->mem['city'])); //print("$nm || $lookfor
"); if(strstr($nm,$lookfor)) { $this->put_entry(); } } } function get_by_state() { $_SESSION['found'] = "no"; if(!$_POST['state'] || $_POST['state'] == " ") { return(false); } else { $lookfor = trim(strtolower($_POST['state'])); } $dirp = opendir("/usr/local/etc/hda/members"); while($n = readdir($dirp)) { $_SESSION['fn'] = "/usr/local/etc/hda/members/$n"; $t = file($_SESSION['fn']); $this->mem = unserialize($t[0]); $nm = trim(strtolower($this->mem['state'])); //print("$nm || $lookfor
"); if(strstr($nm,$lookfor)) { $this->put_entry(); } } } function put_entry() { $_SESSION['found'] = "yes"; $ln = $this->mem['lastname'] . ", " . $this->mem['firstname']; if($this->mem['middlename'] > " ") { $ln .= " " . $this->mem['middlename']; } if($this->mem['credentials'] > " ") { $ln .= ",  " . trim($this->mem['credentials']); } print("$ln
"); if($this->mem['company'] > " ") { print("" . trim($this->mem['company']) . "
"); } if($this->mem['address'] > " ") { print(trim($this->mem['address']) . "
"); } if($this->mem['city'] > " ") { $postal = $this->mem['city'] . ", " . $this->mem['state'] . " " . $this->mem['zip']; } if($this->mem['coutry'] > " " && $this->mem['country'] != "USA") { $postal .= " (" . $this->mem['country'] . ")"; } if($postal > " ") { print("$postal
"); } if($this->mem['phone'] > " ") {print("Phone: {$this->mem['phone']}
");} if($this->mem['fax'] > " ") {print("Fax: {$this->mem['fax']}
");} if($this->mem['email'] > " ") {print("Email: mem['email']}\">{$this->mem['email']}
");} if($this->mem['website'] > " ") {print("Website: mem['website']}\">{$this->mem['website']}
");} if($this->mem['services'] > " ") {print("Services: {$this->mem['services']}
");} print("
"); return(true); } // do strstr here on last name } $_SESSION['errmsg'] = ""; ?> Holistic Dental Association
Main Page

Symposia

Join HDA

Membership

Find an HDA Member



Search by Last Name    
or by City    
or by Area Code    
or by Zip Code    
or by State/Province    

get_by_lastname($_POST['lastname']); } elseif($_POST['submitit'] == "Search Zip Code") { $mem = new MFind(); $mem->get_by_zip($_POST['zip']); } elseif($_POST['submitit'] == "Search City") { $mem = new MFind(); $mem->get_by_city(); } elseif($_POST['submitit'] == "Search Area Code") { $mem = new MFind(); $mem->get_by_areacode(); } elseif($_POST['submitit'] == "Search State/Province") { $mem = new MFind(); $mem->get_by_state(); } else { $_SESSION['errmsg'] = "
Enter Something to Search For
"; } if($_SESSION['found'] == "no") { print("No Matches Found
"); } ?>
Search Tips:


|  Main Page  |  Conferences  |  Find a Member  |  Join HDA  |