CodeIgniter Forums
Help needed with search query - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Help needed with search query (/showthread.php?tid=51410)

Pages: 1 2


Help needed with search query - El Forum - 05-03-2012

[eluser]vitoco[/eluser]
for fulltext search in mysql read this :
FULLTEXT SEARCH
This is the basic sintax
Code:
SELECT
    field_1 ,
    field_2 ,
    ...
    field_n
FROM
    tb_1
WHERE
    MATCH(field_1,[...[,field_n]]) AGAINST ('$token_1[ $token_2[ $token_n]]')

Saludos


Help needed with search query - El Forum - 05-04-2012

[eluser]Bus Pants[/eluser]
From the original post...

"So I planned on using PHP/MySQL FULLTEXT searching for this but it turns out that many of the popular searches on this site will net less than three results, and FULLTEXT will return zero/null if there are less than three matches…"