} $search->count = 10; if (isset($count)) { if ($count == "Infinity") { $search->count = 10; } else { $search->count = $count; } } $pos = false; if (isset($name)) { $names = str_replace("*", "%", $name, $count); if ($count == 0) { $names .= "%"; } $search->parseSelectName($names); $pos = strpos($names, '('); } if (isset($date)) { $search->date_of_birth = $date; } $dao = getPeopleDAO(); $dao->getPersonDetails($search); for ($i = 0; $i < $search->numResults; $i++) { $per = $search->results[$i]; ?> {name:"<?php echo $per->getSelectName(); ?> ", label:"<?php echo $per->getSelectName();