Skip to content
This repository was archived by the owner on May 7, 2023. It is now read-only.

Commit 23c0e84

Browse files
authored
Fix doc search
1 parent 128c3b1 commit 23c0e84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

admin/docs.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141

4242
$query = mysqli_query($mysqli,"SELECT SQL_CALC_FOUND_ROWS * FROM docs
4343
LEFT JOIN categories ON category_id = doc_category_id
44-
WHERE doc_title LIKE '%$search%' AND category_name LIKE '%$search%'
44+
WHERE doc_title LIKE '%$search%' OR category_name LIKE '%$search%'
4545
ORDER BY $sortby $order
4646
LIMIT $record_from, $record_to");
4747

@@ -207,4 +207,4 @@
207207

208208
include("footer.php");
209209

210-
?>
210+
?>

0 commit comments

Comments
 (0)