1
0

Search now searched in full name and user name

This commit is contained in:
hukoeth 2010-09-20 01:42:41 +08:00 committed by Bharat Mediratta
parent c2305d991b
commit da752c9f13

View File

@ -32,7 +32,7 @@ class photoannotation_Core {
"SELECT SQL_CALC_FOUND_ROWS {users}.*, " .
" MATCH({users}.`name`) AGAINST ('$q' IN BOOLEAN MODE) AS `score` " .
"FROM {users} " .
"WHERE MATCH({users}.`name`) AGAINST ('$q' IN BOOLEAN MODE) " .
"WHERE MATCH({users}.`name`, {users}.`full_name`) AGAINST ('$q' IN BOOLEAN MODE) " .
"ORDER BY `score` DESC " .
"LIMIT $page_size OFFSET $offset";
$data = $db->query($query);