How do I find duplicate addresses in a database, or better stop people already when filling in the form ? I guess the earlier the better?
Is there any good way of abstra
As google fetch suggesions for search you can search database address fields
First, let’s create an index.htm(l) file:
Address Autocomplete
Now we will create a city.php file which will aggregate our query to MySQL DB and give response as JSON. Here is the code:
$row['city'].', '.$row['zip'],
'value' => $row['city'],
);
}
//RETURN JSON ARRAY
echo json_encode ($array);
}
?>
and then prevent saving them into database if found duplicate in table column
And for your addressexists.php code: