Skip to content
Snippets Groups Projects
Commit 1e79ab77 authored by Peter Rotich's avatar Peter Rotich
Browse files

Merge pull request #310 from klimnad/patch-1

Update include/client/knowledgebase.inc.php
parents ca6e1bc6 1a0df962
No related branches found
No related tags found
No related merge requests found
......@@ -63,7 +63,7 @@ if($_REQUEST['q'] || $_REQUEST['cid'] || $_REQUEST['topicId']) { //Search.
$sql.=' AND faq.category_id='.db_input($_REQUEST['cid']);
if($_REQUEST['q'])
$sql.=" AND MATCH(question,answer,keywords) AGAINST ('".db_input($_REQUEST['q'],false)."')";
$sql.=" AND question LIKE ('%".db_input($_REQUEST['q'],false)."%') OR answer LIKE ('%".db_input($_REQUEST['q'],false)."%') OR keywords LIKE ('%".db_input($_REQUEST['q'],false)."%')";
$sql.=' GROUP BY faq.faq_id';
echo "<div><strong>Search Results</strong></div><div class='clear'></div>";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment