Multiple Keyword Search |
[eluser]Lykos22[/eluser]
[quote author="JoostV" date="1402261555"]@Lykos22 : The error is here: Code: When you do $where_str .= substr($where_str, 4) . ')'; you are removing the first parenthesis as well. Try this: @JoostV: I tried the code you posted, but still getting error Code: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server However I found out a way to do this, which fetches the correct results: Code: // build the query I have one question though. How can I paginate the results? To be more specific when I click the link to get me to the othe pages, the query changes and return all data from database (not those with matching keywords). Well I thought to put the keywords as parameters on the url and get them for the other pages, but the url will be dynamic and can't define the $config['uri_segment'] in pagination, based on its length. |
Messages In This Thread |
Multiple Keyword Search - by El Forum - 11-03-2009, 02:34 PM
Multiple Keyword Search - by El Forum - 11-03-2009, 02:49 PM
Multiple Keyword Search - by El Forum - 11-03-2009, 02:54 PM
Multiple Keyword Search - by El Forum - 11-03-2009, 04:12 PM
Multiple Keyword Search - by El Forum - 06-06-2014, 08:55 AM
Multiple Keyword Search - by El Forum - 06-08-2014, 02:05 PM
Multiple Keyword Search - by El Forum - 06-09-2014, 01:31 AM
|