search 2 or more keywords or words separated by a space

3 posts by 2 authors in: Forums > CMS Builder
Last Post: July 15, 2014   (RSS)

By esupport - July 15, 2014

Is anyone can help me improve?

Thanks!

-Jax H.

By claire - July 15, 2014

Hi JH

Take a look at these PHP functions: http://php.net/manual/en/function.explode.php and http://php.net/manual/en/function.implode.php

Explode will allow you to take the search string and split it into an array delineated by spaces, dots, whatever. From this, you should be able to modify your getRecords 'where' statement to include an implode that turns the array into a comma separated list.

This will let you search on multiple keywords.

--------------------

Claire Ryan
interactivetools.com

Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/