Hello everybody, I'm trying to find a way to order by relevancy the result of my simple search engine...
I've found on the web different solutions, but I'm not able to adapt them to my case.
Some advices?
Many thanks
I've found on the web different solutions, but I'm not able to adapt them to my case.
Code:
$querystr = "SELECT img,link,numclick,description,order FROM table1 WHERE 1=1 ";
for ($x = 0; $x < count($keys); $x++) {
$querystr .= "and concat( description, order ) like \"%$keys[$x]%\"";
}
$querystr .= " limit 20";
Many thanks
Comment