MYSQL: SELECT Method - but don't show duplicates / GROUP or DISTINCT?
- by elmaso
hello, how can I Select and dont'show duplicates?
actually it's showing like that: apple | apple | apples | apple
this is my code:
$search = $_GET['q'];
$query = "SELECT * FROM query WHERE searchquery LIKE '%$search%' AND searchquery <> '$search'";