I have a very simple search engine on a site. I just noticed that there is a problem with it.
When I search for 'wheels', there are 200 results.
When I search for 'wheel' there are 400 results.
I have both words, wheel and wheels, in my keywords table.
Is there something I can do in my query SELECT statement or my while loop to eliminate duplicates?
while loop:
<?php
//grab all the content
while($row = mysql_fetch_assoc($result)){
$id = $row['link_id'];
$name = $row['name'];
$des = $row['description'];
$url = $row['url'];
$host = $row['host'];
// define output of results
$match = '<h4>' . $name . '</h4>' . "\n";
$match .= '<p>' . $des . "\n";
$match .= '<br /><a href="' . $url . '" />' . judochop($url) . '</a></p>' . "\n";
// put results into a new array that I can index
$resultsArray[] = $match . '<br />' . "\n";
} // .while
?>
Thanks!