- Impact
- 2
in a autocomplete function i use this mysql code
$query = "SELECT Gemeente, Postcode FROM tekoop WHERE Gemeente LIKE '$queryString%' LIMIT 10";
but there are more then one of the same entries, for example there's 4 times 'Gent' en 3 times 'Genk'
so if i type in 'Gen' 7 results will show up ( 4 times Gent en 3 times Genk )
know i want the script to return Gent only one time and Genk only one time,
otherwise said, returning data should only show up onc
anyone know how to do this?
$query = "SELECT Gemeente, Postcode FROM tekoop WHERE Gemeente LIKE '$queryString%' LIMIT 10";
but there are more then one of the same entries, for example there's 4 times 'Gent' en 3 times 'Genk'
so if i type in 'Gen' 7 results will show up ( 4 times Gent en 3 times Genk )
know i want the script to return Gent only one time and Genk only one time,
otherwise said, returning data should only show up onc
anyone know how to do this?





