Пример #1
0
    $streetName = "0";
}
if (isset($_POST['phoneNum'])) {
    $phoneNum = $_POST['phoneNum'];
} else {
    $phoneNum = "";
}
// set the flag which determines if we display the registration info
$display = true;
$dbConn = new dbaccess($debug);
$hoodArray = array();
$orgArray = array();
$streetArray = array();
// call the function to populate the neighborhood array
$dbConn->getHoodNames($hoodArray, 'NBHD');
$dbConn->getGroupNames($orgArray, 'GRUP');
$dbConn->getStreetNames($streetArray);
if ($debug === true) {
    $i = 0;
    foreach ($streetArray as $org) {
        echo "{$i} = {$org}" . "<br>";
        $i++;
    }
    echo "Neighborhoods: <br />";
    print_r($hoodArray);
    unset($org);
}
if (isset($_GET['try'])) {
    unset($_GET['try']);
    if (validate_search($err_msg)) {
        if ($dbConn->dbSearch($_POST) == GOOD_RC) {